Property | Type | Description | |
---|---|---|---|
$delimiterIdentifier | array |
Method | Description | |
---|---|---|
__construct ( $conn ) | ||
createCommandBuilder ( $tableName = null ) : |
Creates a command builder for a given table name. | |
findTableNames ( string $schema = '' ) : array | Returns all table names in the database. | |
getDbConnection ( ) : TDbConnection | ||
getInstance ( $conn ) : |
Obtain database specific TDbMetaData class using the driver name of the database connection. | |
getTableInfo ( $tableName = null ) : |
Obtains table meta data information for the current connection and given table name. | |
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. |
Method | Description | |
---|---|---|
createTableInfo ( $tableName ) : |
This method should be implemented by decendent classes. | |
getTableInfoClass ( ) : string |
public createCommandBuilder ( $tableName = null ) : |
||
return | command builder instance for the given table. |
abstract protected createTableInfo ( $tableName ) : |
||
return | driver dependent create builder. |
abstract public findTableNames ( string $schema = '' ) : array | ||
$schema | string | the schema of the tables. Defaults to empty string, meaning the current or default schema. If not empty, the returned table names will be prefixed with the schema name. |
return | array | all table names in the database. |
public getDbConnection ( ) : TDbConnection | ||
return | TDbConnection | database connection. |
public static getInstance ( $conn ) : |
||
return | database specific TDbMetaData. |
public getTableInfo ( $tableName = null ) : |
||
return | table information. |
protected getTableInfoClass ( ) : string | ||
return | string | TDbTableInfo class name. |
public quoteColumnAlias ( string $name ) : string | ||
$name | string | column alias |
return | string | the properly quoted column alias |
public quoteColumnName ( string $name ) : string | ||
$name | string | column name |
return | string | the properly quoted column name |
public quoteTableName ( string $name ) : string | ||
$name | string | table name |
return | string | the properly quoted table name |
protected static array $delimiterIdentifier | ||
return | array |