mirror of
https://github.com/knex/knex.git
synced 2025-07-03 07:04:07 +00:00
48 lines
759 B
Plaintext
48 lines
759 B
Plaintext
import type { Knex } from "knex";
|
|
|
|
// Update with your config settings.
|
|
|
|
const config: { [key: string]: Knex.Config } = {
|
|
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"
|
|
}
|
|
}
|
|
|
|
};
|
|
|
|
module.exports = config;
|