Deletes table rows based on a WHERE clause.
int
delete
(string $table, string $where)
-
string
$table: The table to udpate.
-
string
$where: DELETE WHERE clause.
Returns the column descriptions for a table.
array
describeTable
( $table, [ $schemaName = null])
void
fetchRow
( $sql, [ $bind = null])
string
getQuoteIdentifierSymbol
()
Inserts a table row with specified data.
int
insert
(string $table, array $bind)
-
string
$table: The table to insert data into.
-
array
$bind: Column-value pairs.
Gets the last inserted ID.
integer
lastInsertId
([string $tableName = null], [string $primaryKey = null])
-
string
$tableName: name of table (or sequence) associated with sequence
-
string
$primaryKey: primary key in $tableName
Adds an adapter-specific LIMIT clause to the SELECT statement.
string
limit
( $sql, $count, $offset)
Returns a list of the tables in the database.
array
listTables
()
Prepare a statement and return a PDOStatement-like object.
Zend_Db_Statment|PDOStatement
prepare
(string $sql)
void
query
( $sql, [ $bind = array()])
Set the fetch mode.
void
setFetchMode
(integer $mode)
Updates table rows with specified data based on a WHERE clause.
int
update
(string $table, array $bind, string $where)
-
string
$table: The table to udpate.
-
array
$bind: Column-value pairs.
-
string
$where: UPDATE WHERE clause.
Begin a transaction.
void
_beginTransaction
()
Commit a transaction.
void
_commit
()
Creates a connection to the database.
void
_connect
()
Quote a raw string.
string
_quote
(string $value)
-
string
$value: Raw string
Roll-back a transaction.
void
_rollBack
()