Final Class Yiisoft\Db\Pgsql\QueryBuilder
| Inheritance | Yiisoft\Db\Pgsql\QueryBuilder » Yiisoft\Db\QueryBuilder\AbstractQueryBuilder |
|---|
Implements the PostgreSQL Server specific query builder.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\Db\Pgsql\QueryBuilder |
Protected Methods
| Method | Description | Defined By |
|---|---|---|
| createSqlParser() | Yiisoft\Db\Pgsql\QueryBuilder | |
| prepareBinary() | Yiisoft\Db\Pgsql\QueryBuilder |
Method Details
| public mixed __construct ( \Yiisoft\Db\Connection\ConnectionInterface $db ) | ||
| $db | \Yiisoft\Db\Connection\ConnectionInterface | |
public function __construct(ConnectionInterface $db)
{
$quoter = $db->getQuoter();
$schema = $db->getSchema();
parent::__construct(
$db,
new DDLQueryBuilder($this, $quoter, $schema),
new DMLQueryBuilder($this, $quoter, $schema),
new DQLQueryBuilder($this, $quoter),
new ColumnDefinitionBuilder($this),
);
}
| protected Yiisoft\Db\Pgsql\SqlParser createSqlParser ( string $sql ) | ||
| $sql | string | |
protected function createSqlParser(string $sql): SqlParser
{
return new SqlParser($sql);
}
| protected string prepareBinary ( string $binary ) | ||
| $binary | string | |
protected function prepareBinary(string $binary): string
{
return "'\x" . bin2hex($binary) . "'::bytea";
}
Signup or Login in order to comment.