Skip to content
PHP Ecosystem
Explore

LobValueBuilder

API reference › yii › db › oci › LobValueBuilder

final classyii\db\oci\LobValueBuilder
Implementsyii\db\ExpressionBuilderInterface
Since22.0
Sourceframework/db/oci/LobValueBuilder.php

Builds the SQL value expression for an LobValue.

Registers the payload under a fresh locator placeholder and renders EMPTY_BLOB().

MethodDescriptionDefined by
bind() staticRegisters 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
ConstantValueDescriptionDefined by
PARAM_PREFIX':lob'LobValueBuilder
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

ParameterTypeDescription
$expressionLobValueLOB value to register.
$paramsarrayThe 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.

public function build(yii\db\oci\LobValue $expression, array &$params = []): string

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

Parameters

ParameterTypeDescription
$expressionLobValueLOB value to build.
$paramsarrayThe binding parameters.

Returns

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