# PdoValueBuilder

> Class PdoValueBuilder builds object of the yii\db\PdoValue expression class.

[API reference](/docs/api/index.md) › [yii](/docs/api/yii/index.md) › [db](/docs/api/yii/db/index.md) › PdoValueBuilder

| class | `yii\db\PdoValueBuilder` |
| --- | --- |
| Implements | [`ExpressionBuilderInterface`](/docs/api/yii/db/expressionbuilderinterface/index.md) |
| Since | 2.0.14 |
| Source | [`framework/db/PdoValueBuilder.php`](https://github.com/yiisoft/yii2/blob/22.0/framework/db/PdoValueBuilder.php#L17) |

Class PdoValueBuilder builds object of the [`PdoValue`](/docs/api/yii/db/pdovalue/index.md) expression class.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`build()`](#method-build) | Method builds the raw SQL from the $expression that will not be additionally escaped or quoted. | `PdoValueBuilder` |

## Constants

| Constant | Value | Description | Defined by |
| --- | --- | --- | --- |
| <span id="const-PARAM_PREFIX"></span>`PARAM_PREFIX` | `':pv'` |  | `PdoValueBuilder` |

## Method details

### build() <span id="method-build"></span>

```php
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**

| Parameter | Type | Description |
| --- | --- | --- |
| `$expression` | [`ExpressionInterface`](/docs/api/yii/db/expressioninterface/index.md) | The expression to be built. |
| `$params` | `array` | The binding parameters. |

**Returns**

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