22 lines
269 B
TypeScript
22 lines
269 B
TypeScript
|
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
|
||
|
})
|
||
|
|
||
|
|
||
|
|
||
|
|