|
|
@ -64,6 +64,7 @@ import { |
|
|
|
IS_WITHIN_COMPARISON_SUB_OPS, |
|
|
|
IS_WITHIN_COMPARISON_SUB_OPS, |
|
|
|
} from '~/utils/globals'; |
|
|
|
} from '~/utils/globals'; |
|
|
|
import { extractProps } from '~/helpers/extractProps'; |
|
|
|
import { extractProps } from '~/helpers/extractProps'; |
|
|
|
|
|
|
|
import { defaultLimitConfig } from '~/helpers/extractLimitAndOffset'; |
|
|
|
|
|
|
|
|
|
|
|
dayjs.extend(utc); |
|
|
|
dayjs.extend(utc); |
|
|
|
|
|
|
|
|
|
|
@ -110,11 +111,7 @@ class BaseModelSqlv2 { |
|
|
|
protected _proto: any; |
|
|
|
protected _proto: any; |
|
|
|
protected _columns = {}; |
|
|
|
protected _columns = {}; |
|
|
|
|
|
|
|
|
|
|
|
public static config: any = { |
|
|
|
public static config: any = defaultLimitConfig; |
|
|
|
limitDefault: Math.max(+process.env.DB_QUERY_LIMIT_DEFAULT || 25, 1), |
|
|
|
|
|
|
|
limitMin: Math.max(+process.env.DB_QUERY_LIMIT_MIN || 1, 1), |
|
|
|
|
|
|
|
limitMax: Math.max(+process.env.DB_QUERY_LIMIT_MAX || 1000, 1), |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public get dbDriver() { |
|
|
|
public get dbDriver() { |
|
|
|
return this._dbDriver; |
|
|
|
return this._dbDriver; |
|
|
|