PHP Class Prado\Data\Common\Sqlite\TSqliteMetaData

Since: 3.1
Inheritance: extends Prado\Data\Common\TDbMetaData
Exibir arquivo Open project: pradosoft/prado

Public Methods

Method Description
findTableNames ( string $schema = '' ) : array Returns all table names in the database.
quoteColumnAlias ( string $name ) : string Quotes a column alias for use in a query.
quoteColumnName ( string $name ) : string Quotes a column name for use in a query.
quoteTableName ( string $name ) : string Quotes a table name for use in a query.

Protected Methods

Method Description
createTableInfo ( $tableName ) : TPgsqlTableInfo Get the column definitions for given table.
getForeignKeys ( $table ) : array
getIsView ( $tableName ) : boolean
getTableInfoClass ( ) : string
isForeignKeyColumn ( $columnId, $foreign ) : boolean
processColumn ( $col, $foreign ) : TSqliteTableColumn

Method Details

createTableInfo() protected method

Get the column definitions for given table.
protected createTableInfo ( $tableName ) : TPgsqlTableInfo
return TPgsqlTableInfo table information.

findTableNames() public method

Returns all table names in the database.
public findTableNames ( string $schema = '' ) : array
$schema string the schema of the tables. This is not used for sqlite database.
return array all table names in the database.

getForeignKeys() protected method

protected getForeignKeys ( $table ) : array
return array foreign key details.

getIsView() protected method

protected getIsView ( $tableName ) : boolean
return boolean true if the table is a view.

getTableInfoClass() protected method

protected getTableInfoClass ( ) : string
return string TDbTableInfo class name.

isForeignKeyColumn() protected method

protected isForeignKeyColumn ( $columnId, $foreign ) : boolean
return boolean true if column is a foreign key.

processColumn() protected method

protected processColumn ( $col, $foreign ) : TSqliteTableColumn
return TSqliteTableColumn column details.

quoteColumnAlias() public method

Quotes a column alias for use in a query.
public quoteColumnAlias ( string $name ) : string
$name string column alias
return string the properly quoted column alias

quoteColumnName() public method

Quotes a column name for use in a query.
public quoteColumnName ( string $name ) : string
$name string column name
return string the properly quoted column name

quoteTableName() public method

Quotes a table name for use in a query.
public quoteTableName ( string $name ) : string
$name string table name
return string the properly quoted table name