Class \Prado\Data\Common\Mysql\TMysqlMetaData
TMysqlMetaData loads Mysql version 4.1.x and 5.x database table and column information.
For Mysql version 4.1.x, PHP 5.1.3 or later is required. See http://netevil.org/node.php?nid=795&SC=1
Class hierarchy
Author: Wei Zhuo <weizho[at]gmail[dot]com>Since: 3.1
public
|
findTableNames([string $schema = '' ]) : array<string|int, mixed>
Returns all table names in the database.
|
public
|
|
public
|
|
public
|
|
protected
|
|
protected
|
|
protected
|
findForeignConstraints(string $schemaName, string $tableName) : array<string|int, mixed>
Extract foreign key constraints by extracting the contraints from SHOW CREATE TABLE result.
|
protected
|
getConstraintKeys(string $schemaName, string $tableName) : array<string|int, mixed>
Gets the primary and foreign key column details for the given table.
|
protected
|
getForeignConstraints(string $schemaName, string $tableName) : array<string|int, mixed>
Gets foreign relationship constraint keys and table name
|
protected
|
getIsView(string $schemaName, string $tableName) : bool
For MySQL version 5.0.1 or later we can use SHOW FULL TABLES
http://dev.mysql.com/doc/refman/5.0/en/show-tables.html
For MySQL version 5.0.1 or earlier, this always return false. |
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
\Prado\TComponent::GLOBAL_RAISE_EVENT_LISTENER |