Installation:
npx @stopsopa/knex-abstract
cd knex-project
cat test.js
# and see Makefile
usege:
require('@stopsopa/dotenv-up')(4, false, '.env');
const knex = require('@stopsopa/knex-abstract');
const config = require('config');
knex.init(config);
(async function(){
const list = await knex().model.common.raw('show tables');
// ...
knex().destroy();
})();
examples:
See example of config
Follow: