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 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);
}
| public Yiisoft\Db\Mssql\TableSchema catalogName ( string $catalogName ) | ||
| $catalogName | string | |
public function catalogName(string $catalogName): static
{
$this->catalogName = $catalogName;
return $this;
}
| public string getCatalogName ( ) |
public function getCatalogName(): string
{
return $this->catalogName;
}
| 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";
}
| public string getServerName ( ) |
public function getServerName(): string
{
return $this->serverName;
}
| public Yiisoft\Db\Mssql\TableSchema serverName ( string $serverName ) | ||
| $serverName | string | |
public function serverName(string $serverName): static
{
$this->serverName = $serverName;
return $this;
}
Signup or Login in order to comment.