updated db config
This commit is contained in:
parent
89505bd2b3
commit
eaea8de3a5
@ -1,20 +1,20 @@
|
||||
import { ConfigService } from '@nestjs/config';
|
||||
|
||||
export const getOracleConfig = (configService: ConfigService) => ({
|
||||
user: configService.get<string>('ORACLE_USER'),
|
||||
password: configService.get<string>('ORACLE_PASSWORD'),
|
||||
connectString: configService.get<string>('ORACLE_CONNECT_STRING'),
|
||||
user: configService.get<string>('ORACLE_USER', ''),
|
||||
password: configService.get<string>('ORACLE_PASSWORD', ''),
|
||||
connectString: configService.get<string>('ORACLE_CONNECT_STRING', ''),
|
||||
});
|
||||
|
||||
export const getMssqlConfig = (configService: ConfigService) => ({
|
||||
server: configService.get<string>('MSSQL_SERVER'),
|
||||
port: configService.get<string>('MSSQL_PORT'),
|
||||
user: configService.get<string>('MSSQL_USER'),
|
||||
password: configService.get<string>('MSSQL_PASSWORD'),
|
||||
database: configService.get<string>('MSSQL_DATABASE'),
|
||||
server: configService.get<string>('MSSQL_SERVER', ''),
|
||||
port: parseInt(configService.get<string>('MSSQL_PORT', '1433'), 10), // 1433 is MSSQL default port
|
||||
user: configService.get<string>('MSSQL_USER', ''),
|
||||
password: configService.get<string>('MSSQL_PASSWORD', ''),
|
||||
database: configService.get<string>('MSSQL_DATABASE', ''),
|
||||
options: {
|
||||
enableArithAbort: true,
|
||||
trustServerCertificate: true,
|
||||
encrypt: true
|
||||
encrypt: true,
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user