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 [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Test
- Subpackage
- PHPUnit
- Version
- $Id: Generic.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Test_PHPUnit_Db_Metadata_Generic
Package: Zend\Test\PHPUnit
Generic Metadata accessor for the Zend_Db adapters
- Implements
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Uses
- \global\PHPUnit_Extensions_Database_DB_IMetaData
Properties
Methods


__construct( $db, string $schema) : void
final
Creates a new database meta data object using the given pdo connection and schema name.
Parameters
Name | Type | Description |
---|---|---|
$db | ||
$schema | string |


getTableColumns(string $tableName) : array
Returns an array containing the names of all the columns in the $tableName table,
Parameters
Returns
Name | Type | Description |
---|---|---|
$tableName | string |
Type | Description |
---|---|
array |


getTableDescription(string $tableName) : array
Get Table information
Parameters
Returns
Name | Type | Description |
---|---|---|
$tableName | string |
Type | Description |
---|---|
array |


getTablePrimaryKeys(string $tableName) : array
Returns an array containing the names of all the primary key columns in the $tableName table.
Parameters
Returns
Name | Type | Description |
---|---|---|
$tableName | string |
Type | Description |
---|---|
array |