Final Class Yiisoft\Db\Mssql\TableSchema
| Inheritance | Yiisoft\Db\Mssql\TableSchema » Yiisoft\Db\Schema\TableSchema |
|---|
Implements the MSSQL Server specific table schema.
Public Methods
Method Details
| 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);
}
| public catalogName( string $catalogName ): Yiisoft\Db\Mssql\TableSchema | ||
| $catalogName | string | |
public function catalogName(string $catalogName): static
{
$this->catalogName = $catalogName;
return $this;
}
| public getCatalogName( ): string |
public function getCatalogName(): string
{
return $this->catalogName;
}
| 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";
}
| public getServerName( ): string |
public function getServerName(): string
{
return $this->serverName;
}
| public serverName( string $serverName ): Yiisoft\Db\Mssql\TableSchema | ||
| $serverName | string | |
public function serverName(string $serverName): static
{
$this->serverName = $serverName;
return $this;
}
Signup or Login in order to comment.