added postgresql support & added a postgres containers

This commit is contained in:
jeff
2024-10-13 15:45:33 -03:00
parent 5aeb99b856
commit 10f61595e1
8 changed files with 249 additions and 6 deletions

View File

@@ -9,6 +9,22 @@ function generateDbConfig() {
if (cfg.engine === 'knex-native') {
return cfg.knex;
}
if (cfg.engine === 'pg') {
return {
client: cfg.engine,
connection: {
host: cfg.host,
user: cfg.user,
password: cfg.password,
database: cfg.name,
port: cfg.port
},
migrations: {
tableName: 'migrations'
}
};
}
return {
client: cfg.engine,
connection: {