architect-knex
Expose knex query builder knex as architect plugin.
Installation
npm install --save architect-knex
Usage
Boot Architect :
var path = ;var architect = ; var config = architect; architect;
Configure Architect with config.js
to access a SQLite3 in memory database *:
moduleexports = packagePath: "architect-knex" settings: default: dialect: 'sqlite3' connection: database: ':memory:' './repos';
- Don't miss to add sqlite3 in your project dependency
Consume knex plugin in your ./repos/package.json
:
"name": "repos" "main": "index.js" "private": true "plugin": "consumes": "knex"