Added knex module.

This commit is contained in:
Niels Simenon 2023-04-09 01:54:25 +02:00
parent 291a338eca
commit e5a10d8059
2 changed files with 10 additions and 0 deletions

1
.gitignore vendored
View File

@ -3,5 +3,6 @@ config/*
!config/default.js
*.config.js
!ecosystem.config.js
*.sqlite
points*.json
assets/mash-words.json

9
src/knex.js Normal file
View File

@ -0,0 +1,9 @@
const knex = require('knex');
module.exports = knex({
client: 'better-sqlite3', // or 'better-sqlite3'
useNullAsDefault: true,
connection: {
filename: './clive.sqlite',
},
});