Doctrine\DBAL\Driver\Statement
Statement interface.
Drivers must implement this interface.
This resembles (a subset of) the PDOStatement interface.
- Author: Konsta Vesterinen <kvesteri@cc.hut.fi>
- License: http://www.opensource.org/licenses/lgpl-license.php LGPL
Synopsis
interface Statement
extends ResultStatement
{
- // methods
- public boolean bindValue()
- public boolean bindParam()
- public string errorCode()
- public array errorInfo()
- public boolean execute()
- public integer rowCount()
- // Inherited methods from ResultStatement
- public boolean closeCursor()
- public integer columnCount()
- public void setFetchMode()
- public mixed fetch()
- public array fetchAll()
- public string fetchColumn()
Hierarchy
Extends
Implemented by
Methods
public
- bindParam() — Binds a PHP variable to a corresponding named or question mark placeholder in the SQL statement that was use to prepare the statement. Unlike PDOStatement->bindValue(), the variable is bound as a reference and will only be evaluated at the time that PDOStatement->execute() is called.
- bindValue() — Binds a value to a corresponding named or positional placeholder in the SQL statement that was used to prepare the statement.
- errorCode() — errorCode Fetch the SQLSTATE associated with the last operation on the statement handle
- errorInfo() — errorInfo Fetch extended error information associated with the last operation on the statement handle
- execute() — Executes a prepared statement
- rowCount() — rowCount rowCount() returns the number of rows affected by the last DELETE, INSERT, or UPDATE statement executed by the corresponding object.
Inherited from Doctrine\DBAL\Driver\ResultStatement
public
- closeCursor() — Closes the cursor, enabling the statement to be executed again.
- columnCount() — columnCount Returns the number of columns in the result set
- fetch() — fetch
- fetchAll() — Returns an array containing all of the result set rows
- fetchColumn() — fetchColumn Returns a single column from the next row of a result set or FALSE if there are no more rows.
- setFetchMode() — setFetchMode Set the fetch mode to use while iterating this statement.