Class \Prado\Data\Common\TDbMetaData
TDbMetaData is the base class for retrieving metadata information, such as
table and columns information, from a database connection.
Use the getTableInfo method to retrieve a table information.
Class hierarchy
Author: Wei Zhuo <weizho[at]gmail[dot]com>Since: 3.1
public
|
|
public
|
createCommandBuilder([null|string $tableName = null ]) : TDbCommandBuilder
Creates a command builder for a given table name.
|
public
abstract
|
findTableNames([string $schema = '' ]) : array<string|int, mixed>
Returns all table names in the database.
This method should be overridden by child classes in order to support this feature because the default implementation simply throws an exception. |
public
|
|
public
static
|
getInstance(TDbConnection $conn) : TDbMetaData
Obtain database specific TDbMetaData class using the driver name of the database connection.
|
public
|
getTableInfo([null|string $tableName = null ]) : TDbTableInfo
Obtains table meta data information for the current connection and given table name.
|
public
|
|
public
|
|
public
|
|
protected
abstract
|
createTableInfo(mixed $tableName) : TDbTableInfo
This method should be implemented by decendent classes.
|
protected
|
\Prado\TComponent::GLOBAL_RAISE_EVENT_LISTENER |