PHP Class Prado\Data\Common\Sqlite\TSqliteMetaData

Since: 3.1
Inheritance: extends Prado\Data\Common\TDbMetaData
Afficher le fichier Open project: pradosoft/prado

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

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

findTableNames() public méthode

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.
Résultat array all table names in the database.

getForeignKeys() protected méthode

protected getForeignKeys ( $table ) : array
Résultat array foreign key details.

getIsView() protected méthode

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

getTableInfoClass() protected méthode

protected getTableInfoClass ( ) : string
Résultat string TDbTableInfo class name.

isForeignKeyColumn() protected méthode

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

processColumn() protected méthode

protected processColumn ( $col, $foreign ) : TSqliteTableColumn
Résultat TSqliteTableColumn column details.

quoteColumnAlias() public méthode

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

quoteColumnName() public méthode

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

quoteTableName() public méthode

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