|
|
@ -70,9 +70,9 @@ class BaseModelSqlv2 { |
|
|
|
private _columns = {}; |
|
|
|
private _columns = {}; |
|
|
|
|
|
|
|
|
|
|
|
private config: any = { |
|
|
|
private config: any = { |
|
|
|
limitDefault: process.env.DB_QUERY_LIMIT_DEFAULT || 25, |
|
|
|
limitDefault: Math.max(+process.env.DB_QUERY_LIMIT_DEFAULT || 25, 1), |
|
|
|
limitMin: process.env.DB_QUERY_LIMIT_MIN || 1, |
|
|
|
limitMin: Math.max(+process.env.DB_QUERY_LIMIT_MIN || 1, 1), |
|
|
|
limitMax: process.env.DB_QUERY_LIMIT_MAX || 1000 |
|
|
|
limitMax: Math.max(+process.env.DB_QUERY_LIMIT_MAX || 1000, 1) |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
constructor({ |
|
|
|
constructor({ |
|
|
@ -1370,6 +1370,7 @@ class BaseModelSqlv2 { |
|
|
|
get isPg() { |
|
|
|
get isPg() { |
|
|
|
return this.clientType === 'pg'; |
|
|
|
return this.clientType === 'pg'; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
get isMySQL() { |
|
|
|
get isMySQL() { |
|
|
|
return this.clientType === 'mysql2' || this.clientType === 'mysql'; |
|
|
|
return this.clientType === 'mysql2' || this.clientType === 'mysql'; |
|
|
|
} |
|
|
|
} |
|
|
|