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
Detailsstring $_schema = ''Schemaname
Detailsarray $_tableMetadata = 'array'Cached Table metadata
Details__construct(
$db, string $schema
)
:
Creates a new database meta data object using the given pdo connection and schema name.
DetailsallowsCascading(
)
:
boolReturns true if the rdbms allows cascading
DetailsgetSchema(
)
:
stringReturns the name of the default schema.
DetailsgetTableColumns(
string $tableName
)
:
arrayReturns an array containing the names of all the columns in the $tableName table,
DetailsgetTableDescription(
string $tableName
)
:
arrayGet Table information
DetailsgetTableNames(
)
:
arrayList Tables
DetailsgetTablePrimaryKeys(
string $tableName
)
:
arrayReturns an array containing the names of all the primary key columns in the $tableName table.
DetailsquoteSchemaObject(
string $object
)
:
stringReturns a quoted schema object. (table name, column name, etc)
Details