1.0.3-beta.1 • Published 7 years ago

aul-knex v1.0.3-beta.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

aul-knex adapter to leverage knex query builder with aul

Adapter to be used with aul executor

npm version Code Climate dependencies:? devDependencies:?

Installation

npm install aul-knex --save

or

yarn add aul-knex

Usage

const {Criteria, Executor} = require("aul");
const KnexAdapter = require("aul-knex");

const executor = new Executor({
  path: [path.join(__dirname, "./node_modules/aul-knex/filters")]
});

executor.setAdapter(new KnexAdapter({
  client: "pg",
  connection: "postgres://user:password@localhost:5432/database_name",
  searchPath: "public"
}));

License

aul-knex is released under the MIT license.

Donate

npm.io npm.io