26 lines
497 B
TypeScript
26 lines
497 B
TypeScript
import type { Knex } from 'knex';
|
|
|
|
const config: { [key: string]: Knex.Config } = {
|
|
development: {
|
|
client: 'sqlite3',
|
|
connection: {
|
|
filename: './dev.sqlite3'
|
|
},
|
|
useNullAsDefault: true,
|
|
migrations: {
|
|
directory: './src/server/db/migrations'
|
|
}
|
|
},
|
|
test: {
|
|
client: 'sqlite3',
|
|
connection: {
|
|
filename: ':memory:'
|
|
},
|
|
useNullAsDefault: true,
|
|
migrations: {
|
|
directory: './src/server/db/migrations'
|
|
}
|
|
}
|
|
};
|
|
|
|
export default config; |