sub-manager-backend/db.mjs

24 lines
381 B
JavaScript
Raw Normal View History

2023-09-06 16:26:15 +00:00
import knex from "knex";
export const db = knex({
client: 'sqlite3',
connection: {
filename: "./submissions"
},
useNullAsDefault: true
})
export const testDb = knex({
client: 'sqlite3',
connection: {
filename: "./test.db"
},
useNullAsDefault: true
2023-11-13 11:09:47 +00:00
})
const memoryDB = knex({
client:'sqlite3',
connection: ':memory:'
})