Interface Yiisoft\Db\Expression\ExpressionBuilderInterface
This interface defines the methods to build database expressions, such as conditions for a SELECT statement or values to insert into a table.
These methods include creating comparison operators (such as =, >, <), combining expressions with logical
operators (such as AND, OR), and building sub-queries.
The interface provides a consistent way for developers to build expressions for various types of database queries, without having to worry about the specific syntax of the underlying database.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| build() | Method builds the raw SQL from the expression that will not be additionally escaped or quoted. | Yiisoft\Db\Expression\ExpressionBuilderInterface |
Method Details
Method builds the raw SQL from the expression that will not be additionally escaped or quoted.
| public abstract string build ( Yiisoft\Db\Expression\ExpressionInterface $expression, array &$params = [] ) | ||
| $expression | Yiisoft\Db\Expression\ExpressionInterface |
The expression to be built. |
| $params | array |
The binding parameters. |
| return | string |
The raw SQL that will not be additionally escaped or quoted. |
|---|---|---|
public function build(ExpressionInterface $expression, array &$params = []): string;
Signup or Login in order to comment.