Метод | Описание | |
---|---|---|
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. |
Метод | Описание | |
---|---|---|
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 ) : |
protected createTableInfo ( $tableName ) : TPgsqlTableInfo | ||
Результат | TPgsqlTableInfo | table information. |
public findTableNames ( string $schema = '' ) : array | ||
$schema | string | the schema of the tables. This is not used for sqlite database. |
Результат | array | all table names in the database. |
protected getForeignKeys ( $table ) : array | ||
Результат | array | foreign key details. |
protected getTableInfoClass ( ) : string | ||
Результат | string | TDbTableInfo class name. |
protected isForeignKeyColumn ( $columnId, $foreign ) : boolean | ||
Результат | boolean | true if column is a foreign key. |
protected processColumn ( $col, $foreign ) : |
||
Результат | column details. |
public quoteColumnAlias ( string $name ) : string | ||
$name | string | column alias |
Результат | string | the properly quoted column alias |
public quoteColumnName ( string $name ) : string | ||
$name | string | column name |
Результат | string | the properly quoted column name |
public quoteTableName ( string $name ) : string | ||
$name | string | table name |
Результат | string | the properly quoted table name |