Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Generic Metadata accessor for the Zend_Db adapters
Zend_Db_Adapter_Abstract $_connection = ''
Zend_Db Connection
string $_schema = ''
Schemaname
array $_tableMetadata = 'array'
Cached Table metadata
__construct(
$db, string $schema
)
:
Creates a new database meta data object using the given pdo connection and schema name.
allowsCascading(
)
:
bool
Returns true if the rdbms allows cascading
getSchema(
)
:
string
Returns the name of the default schema.
getTableColumns(
string $tableName
)
:
array
Returns an array containing the names of all the columns in the $tableName table,
getTableDescription(
string $tableName
)
:
array
Get Table information
getTableNames(
)
:
array
List Tables
getTablePrimaryKeys(
string $tableName
)
:
array
Returns an array containing the names of all the primary key columns in the $tableName table.
quoteSchemaObject(
string $object
)
:
string
Returns a quoted schema object. (table name, column name, etc)