2022-06-29 21:14:39 +09:00
|
|
|
import {Knex as k} from "knex";
|
|
|
|
|
2020-12-31 03:06:16 +09:00
|
|
|
export namespace Knex {
|
2022-06-29 21:14:39 +09:00
|
|
|
export const config: {
|
|
|
|
development: k.Config,
|
|
|
|
production: k.Config
|
|
|
|
} = {
|
2020-12-31 03:06:16 +09:00
|
|
|
development: {
|
|
|
|
client: 'sqlite3',
|
|
|
|
connection: {
|
|
|
|
filename: './devdb.sqlite3'
|
2022-06-29 21:14:39 +09:00
|
|
|
},
|
|
|
|
debug: true,
|
2020-12-31 03:06:16 +09:00
|
|
|
},
|
|
|
|
production: {
|
|
|
|
client: 'sqlite3',
|
|
|
|
connection: {
|
2021-01-09 20:28:05 +09:00
|
|
|
filename: './db.sqlite3',
|
2020-12-31 03:06:16 +09:00
|
|
|
},
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|