LobValueBuilder
API reference › yii › db › oci › LobValueBuilder
Builds the SQL value expression for an LobValue.
Registers the payload under a fresh locator placeholder and renders EMPTY_BLOB().
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
bind() static | Registers the payload under a fresh locator placeholder. | LobValueBuilder |
build() | Method builds the raw SQL from the $expression that will not be additionally escaped or quoted. | LobValueBuilder |
Constants
Section titled “Constants”| Constant | Value | Description | Defined by |
|---|---|---|---|
PARAM_PREFIX | ':lob' | LobValueBuilder |
Method details
Section titled “Method details”bind()
Section titled “bind() ”public static function bind(yii\db\oci\LobValue $expression, array &$params): array{0: string, 1: string}Registers the payload under a fresh locator placeholder.
Returns the placeholder explicitly so callers building a RETURNING clause never infer it from $params.
Parameters
| Parameter | Type | Description |
|---|---|---|
$expression | LobValue | LOB value to register. |
$params | array | The parameters to be bound to the SQL statement. This parameter is passed by reference and will be modified by this method. |
Returns
array{0: string, 1: string}: SQL value expression and locator placeholder.
build()
Section titled “build() ”public function build(yii\db\oci\LobValue $expression, array &$params = []): stringMethod builds the raw SQL from the $expression that will not be additionally escaped or quoted.
Parameters
| Parameter | Type | Description |
|---|---|---|
$expression | LobValue | LOB value to build. |
$params | array | The binding parameters. |
Returns
string: The raw SQL that will not be additionally escaped or quoted.