BASE_CONFIG |
Type : object
|
Default value : {
client: 'pg',
debug: process.env.NESTJS_DEBUG !== 'false',
useNullAsDefault: true,
pool: {
min: 2,
max: 10,
createTimeoutMillis: 3000,
acquireTimeoutMillis: 30000,
idleTimeoutMillis: 30000,
reapIntervalMillis: 1000,
createRetryIntervalMillis: 100,
propagateCreateError: false,
},
log: {
warn(msg: any) {
console.warn(msg);
},
error(msg: any) {
console.error(msg);
},
deprecate(msg: any) {
console.warn('deprecate:', msg);
},
debug(msg: any) {
console.debug(msg);
},
},
}
|
DB_GROUPD_CONFIG |
Type : object
|
Default value : {
...BASE_CONFIG,
connection: {
host: DB_GROUPD_HOST,
port: DB_GROUPD_PORT,
database: DB_GROUPD_NAME,
user: DB_GROUPD_USER,
password: DB_GROUPD_PASSWORD,
},
}
|
Default value : process.env
|
database |
Default value : (config: any, name: string) => {
return KnexModule.forRootAsync(
{
useFactory: () => ({ config }),
},
name,
);
}
|
DYNATEST_MODULE_NUMBER |
Type : number
|
Default value : 19
|
Image |
Default value : (k: Knex) => k.from<IImage>('image')
|
Measurement |
Default value : (k: Knex) => k.from<IMeasurement>('measurement')
|
Survey |
Default value : (k: Knex) => k.from<ISurvey>('survey')
|
Way |
Default value : (k: Knex) => k.from<IWay>('way')
|
OSM_API_TIMEOUT |
Type : number
|
Default value : 900
|
The timeout of the OSM API in seconds. |