|
|
@ -109,7 +109,7 @@ const appendWhereCondition = function (conditions, columnAliases: { |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} else if (typeof condition === 'string') { |
|
|
|
} else if (typeof condition === 'string') { |
|
|
|
const matches = condition.match(/^(?:~(\w+))?\((\w+),(\w+),(.*?)\)(?:~(?:or|and|not))?$/) |
|
|
|
const matches = condition.match(/^(?:~(\w+))?\(([\w ]+),(\w+),(.*?)\)(?:~(?:or|and|not))?$/) |
|
|
|
|
|
|
|
|
|
|
|
if (!matches) throw new Error(`${condition} : not a valid syntax`) |
|
|
|
if (!matches) throw new Error(`${condition} : not a valid syntax`) |
|
|
|
switch (matches[3]) { |
|
|
|
switch (matches[3]) { |
|
|
|