Test/PHPUnit/Db/Metadata/Generic.php
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.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Test
- Subpackage
- PHPUnit
- Version
- $Id$
\Zend_Test_PHPUnit_Db_Metadata_Generic
Package: Zend_Test\PHPUnitGeneric Metadata accessor for the Zend_Db adapters
- Implements
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Uses
-
Properties
Methods
__construct( $db, string $schema) : void
finalCreates a new database meta data object using the given pdo connection
and schema name.
ParametersName | Type | Description |
---|
$db | | |
---|
$schema | string | |
---|
disablePrimaryKeys(string $tableName) : void
Disables primary keys if rdbms does not allow setting them otherwise
ParametersName | Type | Description |
---|
$tableName | string | |
---|
enablePrimaryKeys(string $tableName) : void
Reenables primary keys after they have been disabled
ParametersName | Type | Description |
---|
$tableName | string | |
---|
getTableColumns(string $tableName) : array
Returns an array containing the names of all the columns in the
$tableName table,
ParametersName | Type | Description |
---|
$tableName | string | |
---|
Returns getTablePrimaryKeys(string $tableName) : array
Returns an array containing the names of all the primary key columns in
the $tableName table.
ParametersName | Type | Description |
---|
$tableName | string | |
---|
Returns quoteSchemaObject(string $object) : string
Returns a quoted schema object. (table name, column name, etc)
ParametersName | Type | Description |
---|
$object | string | |
---|
Returns