0 follower

Final Class Yiisoft\Db\Mssql\QueryBuilder

InheritanceYiisoft\Db\Mssql\QueryBuilder » Yiisoft\Db\QueryBuilder\AbstractQueryBuilder

Implements the MSSQL Server specific query builder.

Public Methods

Hide inherited methods

Method Description Defined By
__construct() Yiisoft\Db\Mssql\QueryBuilder

Protected Methods

Hide inherited methods

Method Description Defined By
createSqlParser() Yiisoft\Db\Mssql\QueryBuilder

Constants

Hide inherited constants

Constant Value Description Defined By
FALSE_VALUE '0' Yiisoft\Db\Mssql\QueryBuilder
TRUE_VALUE '1' Yiisoft\Db\Mssql\QueryBuilder

Method Details

Hide inherited methods

__construct() public method

public __construct( \Yiisoft\Db\Connection\ConnectionInterface $db ): mixed
$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),
    );
}

            
createSqlParser() protected method

protected createSqlParser( string $sql ): Yiisoft\Db\Mssql\SqlParser
$sql string

                protected function createSqlParser(string $sql): SqlParser
{
    return new SqlParser($sql);
}