Method |
Description |
|
affectedRows ( ) : integer |
Returns the number of affected rows by the last INSERT/UPDATE/DELETE reported by the database system |
|
begin ( ) : void |
Starts a transaction in the connection |
|
commit ( ) : void |
Commits the active transaction in the connection |
|
delete ( string $table, string | array $conditions, array $bind = [] ) : integer |
Deletes data from a table using custom SQL syntax |
|
escapeIdentifier ( string | array $identifier ) : string |
Escapes a column/table/schema name |
|
execute ( string $sql, array $bind = [] ) : integer |
Sends SQL statements to the database server returning the success state. |
|
fetchAll ( string $sql, array $bind = [], integer $fetchMode = PDO::FETCH_ASSOC ) : array |
Dumps the complete result of a query into an array |
|
fetchOne ( string $sql, array $bind = [], integer $fetchMode = PDO::FETCH_ASSOC ) : array | false |
Returns the first row in a SQL query result |
|
getBind ( ) : array |
Active SQL statement in the object |
|
getEmulatedSQL ( integer $preservedStrLength ) : string |
Active SQL statement in the object with replace the bind with value |
|
getMetadata ( $source ) : array |
|
|
getSQL ( ) : string |
Active SQL statement in the object |
|
insert ( string $table, array $columnValues ) : void |
Inserts data into a table using custom SQL syntax |
|
isUnderTransaction ( ) : boolean |
Checks whether the connection is under a transaction |
|
lastInsertId ( ) : integer |
Returns insert id for the auto_increment column inserted in the last SQL statement |
|
limit ( string $sql, integer $number, integer $offset = null ) : string |
Appends a LIMIT clause to $sql argument |
|
query ( string $sql, array $bind = [], integer $fetchMode = PDO::FETCH_ASSOC ) : PDOStatement |
Sends SQL statements to the database server returning the success state. |
|
rollback ( ) : void |
Rollbacks the active transaction in the connection |
|
truncateTable ( string $source ) : static |
|
|
update ( string $table, array $columnValues, string | array $conditions, array $bind = [] ) : integer |
Updates data on a table using custom SQL syntax |
|