Generic Metadata accessor for the Zend_Db adapters

uses
category Zend
package Zend_Test
subpackage PHPUnit
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Creates a new database meta data object using the given pdo connection and schema name.

__construct(\Zend_Db_Adapter_Abstract $db, string $schema) 

Parameters

$db

\Zend_Db_Adapter_Abstract

$schema

string

Returns true if the rdbms allows cascading

allowsCascading() : boolean

Returns

boolean

Disables primary keys if rdbms does not allow setting them otherwise

disablePrimaryKeys(string $tableName) 

Parameters

$tableName

string

Reenables primary keys after they have been disabled

enablePrimaryKeys(string $tableName) 

Parameters

$tableName

string

Returns the name of the default schema.

getSchema() : string

Returns

string

Returns an array containing the names of all the columns in the $tableName table,

getTableColumns(string $tableName) : array

Parameters

$tableName

string

Returns

array

List Tables

getTableNames() : array

Returns

array

Returns an array containing the names of all the primary key columns in the $tableName table.

getTablePrimaryKeys(string $tableName) : array

Parameters

$tableName

string

Returns

array

Returns a quoted schema object. (table name, column name, etc)

quoteSchemaObject(string $object) : string

Parameters

$object

string

Returns

string

Get Table information

getTableDescription(string $tableName) : array

Parameters

$tableName

string

Returns

array

 Properties

 

Zend_Db Connection

$_connection : \Zend_Db_Adapter_Abstract

Default

 

Schemaname

$_schema : string

Default