|
|
@ -6,7 +6,7 @@ types.setTypeParser(1082, val => val); |
|
|
|
|
|
|
|
|
|
|
|
import { BaseModelSql } from './BaseModelSql'; |
|
|
|
import { BaseModelSql } from './BaseModelSql'; |
|
|
|
|
|
|
|
|
|
|
|
const opMapping = { |
|
|
|
const opMappingGen = { |
|
|
|
eq: '=', |
|
|
|
eq: '=', |
|
|
|
lt: '<', |
|
|
|
lt: '<', |
|
|
|
gt: '>', |
|
|
|
gt: '>', |
|
|
@ -92,6 +92,10 @@ const appendWhereCondition = function( |
|
|
|
knexRef, |
|
|
|
knexRef, |
|
|
|
isHaving = false |
|
|
|
isHaving = false |
|
|
|
) { |
|
|
|
) { |
|
|
|
|
|
|
|
const opMapping = { |
|
|
|
|
|
|
|
...opMappingGen, |
|
|
|
|
|
|
|
...(knexRef?.client?.config?.client === 'pg' ? { like: 'ilike' } : {}) |
|
|
|
|
|
|
|
}; |
|
|
|
const camKey = isHaving ? 'Having' : 'Where'; |
|
|
|
const camKey = isHaving ? 'Having' : 'Where'; |
|
|
|
const key = isHaving ? 'having' : 'where'; |
|
|
|
const key = isHaving ? 'having' : 'where'; |
|
|
|
|
|
|
|
|
|
|
|