Skip to content
PHP Ecosystem
Explore

ExpressionBuilderInterface

API reference › yii › db › ExpressionBuilderInterface

interfaceyii\db\ExpressionBuilderInterface
Since2.0.14
Sourceframework/db/ExpressionBuilderInterface.php
Implemented by 16 types

Interface ExpressionBuilderInterface is designed to build raw SQL from specific expression objects that implement ExpressionInterface.

MethodDescriptionDefined by
build() abstractMethod builds the raw SQL from the $expression that will not be additionally escaped or quoted.ExpressionBuilderInterface
abstract public function build(yii\db\ExpressionInterface $expression, array &$params = []): string

Method builds the raw SQL from the $expression that will not be additionally escaped or quoted.

Parameters

ParameterTypeDescription
$expressionExpressionInterfaceThe expression to be built.
$paramsarrayThe binding parameters.

Returns

string: The raw SQL that will not be additionally escaped or quoted.