Saving results to database. Showing webpage.
This commit is contained in:
10
src/knex.js
10
src/knex.js
@@ -1,11 +1,19 @@
|
||||
'use strict';
|
||||
|
||||
const config = require('config');
|
||||
const knex = require('knex');
|
||||
|
||||
/*
|
||||
module.exports = knex({
|
||||
client: 'sqlite3',
|
||||
connection: {
|
||||
filename: './db.sqlite',
|
||||
filename: path.join(__dirname, '../db.sqlite'),
|
||||
},
|
||||
useNullAsDefault: true,
|
||||
});
|
||||
*/
|
||||
|
||||
module.exports = knex({
|
||||
client: 'pg',
|
||||
connection: config.database,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user