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 __construct( string $name '', string $schemaName '', string $catalogName '', string $serverName '' ): mixed
$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 catalogName( string $catalogName ): Yiisoft\Db\Mssql\TableSchema
$catalogName string

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

            
getCatalogName() public method

public getCatalogName( ): string

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

            
getFullName() public method

public getFullName( ): string

                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 getServerName( ): string

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

            
serverName() public method

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

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