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

loadTableSchema() protected method

Loads the metadata for the specified table.
protected loadTableSchema ( string $name ) : yii\db\TableSchema
$name string table name
return yii\db\TableSchema driver dependent table metadata. Null if the table does not exist.
    protected function loadTableSchema($name)
    {
        $table = new TableSchema();
        $table->name = $name;
        $table->fullName = $name;
        if ($this->findColumns($table)) {
            $this->findConstraints($table);
            return $table;
        } else {
            return null;
        }
    }