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

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

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

getTableDescription(
string $tableName
)
:
array
Get Table information
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.
Name | Type | Description |
---|---|---|
$tableName | string |
Type | Description |
---|---|
array |