diff --git a/src/QueryBuilder.php b/src/QueryBuilder.php index cb178be..3c12416 100644 --- a/src/QueryBuilder.php +++ b/src/QueryBuilder.php @@ -102,6 +102,7 @@ public function buildCondition($condition) 'in' => 'buildInCondition', 'ni' => 'buildNotInCondition', 'like' => 'buildLikeCondition', + 'ilike' => 'buildIlikeCondition', 'gt' => 'buildCompareCondition', 'ge' => 'buildCompareCondition', 'lt' => 'buildCompareCondition', @@ -149,6 +150,11 @@ private function buildLikeCondition($operator, $operands) return [$operands[0] . '_like' => $operands[1]]; } + private function buildIlikeCondition($operator, $operands) + { + return [$operands[0] . '_ilike' => $operands[1]]; + } + private function buildCompareCondition($operator, $operands) { if (!isset($operands[0], $operands[1])) {