0 follower

Final Class Yiisoft\Db\Mssql\TableSchema

InheritanceYiisoft\Db\Mssql\TableSchema » Yiisoft\Db\Schema\TableSchema

Implements the MSSQL Server specific table schema.

Method Details

Hide inherited methods

__construct() public method

public mixed __construct ( string $name '', string $schemaName '', string $catalogName '', string $serverName '' )
$name string
$schemaName string
$catalogName string
$serverName string

                public function __construct(
    string $name = '',
    string $schemaName = '',
    private string $catalogName = '',
    private string $serverName = '',
) {
    parent::__construct($name, $schemaName);
}

            
catalogName() public method

public Yiisoft\Db\Mssql\TableSchema catalogName ( string $catalogName )
$catalogName string

                public function catalogName(string $catalogName): static
{
    $this->catalogName = $catalogName;
    return $this;
}

            
getCatalogName() public method

public string getCatalogName ( )

                public function getCatalogName(): string
{
    return $this->catalogName;
}

            
getFullName() public method

public string getFullName ( )

                public function getFullName(): string
{
    $schemaName = $this->getSchemaName();
    $tableName = $this->getName();
    if ($schemaName === '') {
        return $tableName;
    }
    if ($this->catalogName === '') {
        return "$schemaName.$tableName";
    }
    if ($this->serverName === '') {
        return "$this->catalogName.$schemaName.$tableName";
    }
    return "$this->serverName.$this->catalogName.$schemaName.$tableName";
}

            
getServerName() public method

public string getServerName ( )

                public function getServerName(): string
{
    return $this->serverName;
}

            
serverName() public method

public Yiisoft\Db\Mssql\TableSchema serverName ( string $serverName )
$serverName string

                public function serverName(string $serverName): static
{
    $this->serverName = $serverName;
    return $this;
}