Adapter to be used with aul executor
npm install aul-knex --save
or
yarn add aul-knex
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"
}));
aul-knex is released under the MIT license.