Final Class Yiisoft\Db\Pgsql\Builder\LikeBuilder
| Inheritance | Yiisoft\ |
|---|
Build an object of {@see Like} into SQL expressions for PostgreSQL Server.
Protected Methods
| Method | Description | Defined By |
|---|---|---|
| getOperatorData() | Yiisoft\ |
Method Details
| protected array getOperatorData ( \ | ||
| $condition | \ |
|
protected function getOperatorData(Like|NotLike $condition): array
{
return match ($condition::class) {
Like::class => [false, $condition->caseSensitive === false ? 'ILIKE' : 'LIKE'],
NotLike::class => [true, $condition->caseSensitive === false ? 'NOT ILIKE' : 'NOT LIKE'],
};
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.