2021-12-30 21:46:22 +00:00
|
|
|
import type { Knex } from "knex";
|
2016-12-01 14:02:21 +05:30
|
|
|
|
2021-12-30 21:46:22 +00:00
|
|
|
// Update with your config settings.
|
2016-12-01 14:02:21 +05:30
|
|
|
|
2021-12-30 21:46:22 +00:00
|
|
|
const config: { [key: string]: Knex.Config } = {
|
2016-12-01 14:02:21 +05:30
|
|
|
development: {
|
|
|
|
client: "sqlite3",
|
|
|
|
connection: {
|
|
|
|
filename: "./dev.sqlite3"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
staging: {
|
|
|
|
client: "postgresql",
|
|
|
|
connection: {
|
|
|
|
database: "my_db",
|
|
|
|
user: "username",
|
|
|
|
password: "password"
|
|
|
|
},
|
|
|
|
pool: {
|
|
|
|
min: 2,
|
|
|
|
max: 10
|
|
|
|
},
|
|
|
|
migrations: {
|
|
|
|
tableName: "knex_migrations"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
production: {
|
|
|
|
client: "postgresql",
|
|
|
|
connection: {
|
|
|
|
database: "my_db",
|
|
|
|
user: "username",
|
|
|
|
password: "password"
|
|
|
|
},
|
|
|
|
pool: {
|
|
|
|
min: 2,
|
|
|
|
max: 10
|
|
|
|
},
|
|
|
|
migrations: {
|
|
|
|
tableName: "knex_migrations"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
2021-12-30 21:46:22 +00:00
|
|
|
|
|
|
|
module.exports = config;
|