0 follower

Final Class Yiisoft\Db\Sqlite\Builder\LikeBuilder

InheritanceYiisoft\Db\Sqlite\Builder\LikeBuilder » Yiisoft\Db\QueryBuilder\Condition\Builder\LikeBuilder

Build an object of {@see \Yiisoft\Db\QueryBuilder\Condition\LikeCondition} into SQL expressions for SQLite Server.

Public Methods

Hide inherited methods

Method Description Defined By
build() Yiisoft\Db\Sqlite\Builder\LikeBuilder

Constants

Hide inherited constants

Constant Value Description Defined By
ESCAPE_SQL " ESCAPE '\\'" Yiisoft\Db\Sqlite\Builder\LikeBuilder

Method Details

Hide inherited methods

build() public method

public string build ( \Yiisoft\Db\Expression\ExpressionInterface $expression, array &$params = [] )
$expression \Yiisoft\Db\Expression\ExpressionInterface
$params array

                public function build(ExpressionInterface $expression, array &$params = []): string
{
    if ($expression->caseSensitive === true) {
        throw new NotSupportedException('SQLite doesn\'t support case-sensitive "LIKE" conditions.');
    }
    return parent::build($expression, $params);
}