yii\db\mssql\Schema::loadTableSchema PHP Method

loadTableSchema() public method

Loads the metadata for the specified table.
public loadTableSchema ( string $name ) : yii\db\mssql\TableSchema | null
$name string table name
return yii\db\mssql\TableSchema | null driver dependent table metadata. Null if the table does not exist.
    public function loadTableSchema($name)
    {
        $table = new TableSchema();
        $this->resolveTableNames($table, $name);
        $this->findPrimaryKeys($table);
        if ($this->findColumns($table)) {
            $this->findForeignKeys($table);
            return $table;
        } else {
            return null;
        }
    }