This commit is contained in:
Ahmed Bouhuolia
2020-03-19 17:02:37 +02:00
parent 73711384f6
commit ab81f4be40
57 changed files with 3734 additions and 515 deletions

View File

@@ -0,0 +1,17 @@
import knexManager from 'knex-db-manager';
import knexfile from '@/../knexfile';
const config = knexfile[process.env.NODE_ENV];
const dbManager = knexManager.databaseManagerFactory({
knex: config,
dbManager: {
// db manager related configuration
collate: [],
superUser: 'root',
superPassword: 'root',
// populatePathPattern: 'data/**/*.js', // glob format for searching seeds
},
});
export default dbManager;