Final Class Yiisoft\Db\Sqlite\Builder\LikeBuilder
| Inheritance | Yiisoft\ |
|---|
Build an object of {@see LikeCondition} into SQL expressions for SQLite Server.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| build() | Yiisoft\ |
Constants
| Constant | Value | Description | Defined By |
|---|---|---|---|
| ESCAPE_SQL | " ESCAPE '\\'" | Yiisoft\ |
Method Details
| public string build ( \ | ||
| $expression | \ |
|
| $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);
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.