2015-05-09 13:58:18 -04:00
|
|
|
// Update with your config settings.
|
|
|
|
|
2021-11-06 10:43:04 +01:00
|
|
|
/**
|
|
|
|
* @type { Object.<string, import("knex").Knex.Config> }
|
|
|
|
*/
|
2015-05-09 13:58:18 -04:00
|
|
|
module.exports = {
|
|
|
|
|
|
|
|
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'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|