Class TMysqlMetaDataInspector

Description

TMysqlMetaDataInspector class.

Gathers table column properties for Mysql database.

  • since: 3.1
  • version: $Id: TMysqlMetaDataInspector.php 1608 2007-01-11 05:24:31Z wei $
  • author: Wei Zhuo <weizho[at]gmail[dot]com>

Located in /Data/ActiveRecord/Vendor/TMysqlMetaDataInspector.php (line 27)

TDbMetaDataInspector
   |
   --TMysqlMetaDataInspector
Method Summary
TDbMetaData createMetaData (string $table, array $columns, array $primary, array $foreign)
array getColumnDefinitions (string $table)
void getColumnMetaData (mixed $col)
void getConstraintKeys (mixed $table)
Methods
createMetaData (line 73)

Create a new instance of meta data.

  • return: table meta data.
  • access: protected
TDbMetaData createMetaData (string $table, array $columns, array $primary, array $foreign)
  • string $table: table name
  • array $columns: column meta data
  • array $primary: primary key meta data
  • array $foreign: foreign key meta data.

Redefinition of:
TDbMetaDataInspector::createMetaData()
Create a new instance of meta data.
getColumnDefinitions (line 34)

Get the column definitions for given table.

  • return: column name value pairs of column meta data.
  • access: protected
array getColumnDefinitions (string $table)
  • string $table: table name.

Redefinition of:
TDbMetaDataInspector::getColumnDefinitions()
Get the column definitions for given table.
getColumnMetaData (line 46)
  • access: protected
void getColumnMetaData (mixed $col)
getConstraintKeys (line 60)

Not implemented, Mysql does not always have foreign key constraints.

  • access: protected
void getConstraintKeys (mixed $table)

Redefinition of:
TDbMetaDataInspector::getConstraintKeys()
Gets the primary and foreign key details for the given table.

Inherited Methods

Inherited From TDbMetaDataInspector

TDbMetaDataInspector::__construct()
TDbMetaDataInspector::createMetaData()
TDbMetaDataInspector::getColumnDefinitions()
TDbMetaDataInspector::getConstraintKeys()
TDbMetaDataInspector::getDbConnection()
TDbMetaDataInspector::getTableMetaData()
TDbMetaDataInspector::setDbConnection()

Documentation generated on Sun, 14 Jan 2007 21:43:34 -0500 by phpDocumentor 1.3.0RC4