chore: Setup objectionjs as ORM
This commit is contained in:
20
packages/backend/knexfile.ts
Normal file
20
packages/backend/knexfile.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import appConfig from './src/config/app';
|
||||
|
||||
const knexConfig = {
|
||||
client: 'pg',
|
||||
connection: {
|
||||
host: appConfig.postgresHost,
|
||||
port: appConfig.postgresPort,
|
||||
user: appConfig.postgresUsername,
|
||||
password: appConfig.postgresPassword,
|
||||
database: appConfig.postgresDatabase,
|
||||
},
|
||||
migrations: {
|
||||
directory: __dirname + '/db/migrations',
|
||||
},
|
||||
seeds: {
|
||||
directory: __dirname + '/db/seeds',
|
||||
}
|
||||
}
|
||||
|
||||
export default knexConfig;
|
Reference in New Issue
Block a user