## Class TPgsqlMetaDataInspector

Description

Table meta data inspector for Postgres database 7.3 or later.

- since: 3.1
- version: $Id: TPgsqlMetaDataInspector.php 1545 2006-12-03 22:26:04Z wei $
- author: Wei Zhuo <weizho[at]gmail[dot]com>

Located in /Data/ActiveRecord/Vendor/TPgsqlMetaDataInspector.php (line 25)

    TDbMetaDataInspector
       |
       --TPgsqlMetaDataInspector

Method Summary
TDbMetaData createMetaData (string $table, array $columns, array $primary, array $foreign)
array getColumnDefinitions (string $table)
TPgsqlColumnMetaData getColumnMetaData (array $col)
array getConstraintKeys (string $table)
string getDefaultSchema ()
array getForeignKeys (string $src)
void getIsView (mixed $table)
array getPrimaryKeys (string $src)
string getSerialName (mixed $src)
void setDefaultSchema (string $schema)
Methods
createMetaData (line 53)

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 80)

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 130)

Returns the column details.

- return: column meta data.
- access: protected

TPgsqlColumnMetaData getColumnMetaData (array $col)

- array $col: column details.

getConstraintKeys (line 158)

Gets the primary and foreign key details for the given table.

- return: key value pairs with keys 'primary' and 'foreign'.
- access: protected

array getConstraintKeys (string $table)

- string $table: table name.

Redefinition of:

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

getDefaultSchema (line 40)

- return: default schema.
- access: public

string getDefaultSchema ()
getForeignKeys (line 199)

Gets foreign relationship constraint keys and table name

- return: foreign relationship table name and keys, null otherwise
- access: protected

array getForeignKeys (string $src)

- string $src: pgsql foreign key definition

getIsView (line 60)

- access: protected

void getIsView (mixed $table)
getPrimaryKeys (line 186)

Gets the primary key field names

- return: primary key field names.
- access: protected

array getPrimaryKeys (string $src)

- string $src: pgsql primary key definition

getSerialName (line 146)

- return: serial name if found, null otherwise.
- access: protected

string getSerialName (mixed $src)
setDefaultSchema (line 32)

- access: public

void setDefaultSchema (string $schema)

- string $schema: default schema.

#### 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:53 -0500 by phpDocumentor 1.3.0RC4