| Category | Zend |
| Package | Zend_Db |
| Subpackage | Adapter |
| Copyright | Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com) |
| License | http://framework.zend.com/license/new-bsd New BSD License |
| Category | Zend |
| Package | Zend_Db |
| Subpackage | Adapter |
| Copyright | Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com) |
| License | http://framework.zend.com/license/new-bsd New BSD License |
| # $_numericDataTypes | Keys are UPPERCASE SQL datatypes or the constants |
| # $_pdoType | PDO type |
| # _connect() | Creates a PDO object and connects to the database |
| + describeTable() | Returns the column descriptions for a table. |
| + lastInsertId() | Gets the last ID generated automatically by an IDENTITY/AUTOINCREMENT column. |
| + lastSequenceId() | Return the most recent value from the specified sequence in the database. |
| + limit() | Adds an adapter-specific LIMIT clause to the SELECT statement |
| + listTables() | Returns a list of the tables in the database |
| + nextSequenceId() | Generate a new value from the specified sequence in the database, and return it. |
protected $_numericDataTypes = array(
Zend_Db::INT_TYPE => Zend_Db::INT_TYPE,
Zend_Db::BIGINT_TYPE => Zend_Db::BIGINT_TYPE,
Zend_Db::FLOAT_TYPE => Zend_Db::FLOAT_TYPE,
'INTEGER' => Zend_Db::INT_TYPE,
'SERIAL' => Zend_Db::INT_TYPE,
'SMALLINT' => Zend_Db::INT_TYPE,
'BIGINT' => Zend_Db::BIGINT_TYPE,
'BIGSERIAL' => Zend_Db::BIGINT_TYPE,
'DECIMAL' => Zend_Db::FLOAT_TYPE,
'DOUBLE PRECISION' => Zend_Db::FLOAT_TYPE,
'NUMERIC' => Zend_Db::FLOAT_TYPE,
'REAL' => Zend_Db::FLOAT_TYPE
)Zend_Db::INT_TYPE, Zend_Db::BIGINT_TYPE, or Zend_Db::FLOAT_TYPE.
protected function _connect( |
)
|
public function describeTable( |
$tableName)
|
string $tableName |
|
string $schemaName |
OPTIONAL |
public function lastInsertId( |
$tableName = null)
|
string $tableName |
OPTIONAL Name of table. |
string $primaryKey |
OPTIONAL Name of primary key column. |
public function lastSequenceId( |
$sequenceName)
|
string $sequenceName |
public function limit( |
$sql)
|
string $sql |
|
integer $count |
|
integer $offset |
OPTIONAL |
public function listTables( |
)
|
public function nextSequenceId( |
$sequenceName)
|
string $sequenceName |