Statement
public class Statement
Constructor Summary | |
---|---|
Statement(string sql, mixed conn, Doctrine\DBAL\Connection The) Creates a new Statement for the given SQL and Connection. |
Method Summary | |
---|---|
boolean | bindParam(string name, mixed var, integer type, mixed value) Binds a parameter to a value by reference. |
boolean | bindValue(mixed name, mixed value, mixed type, $value The) Binds a parameter value to the statement. |
boolean | Closes the cursor, freeing the database resources used by this statement. |
integer | Returns the number of columns in the result set. |
string | Fetches the SQLSTATE associated with the last operation on the statement. |
array | Fetches extended error information associated with the last operation on the statement. |
boolean | execute(mixed params) Executes the statement with the currently bound parameters. |
mixed | fetch(integer fetchStyle) Fetches the next row from a result set. |
array | fetchAll(integer fetchStyle, integer columnIndex) Returns an array containing all of the result set rows. |
mixed | fetchColumn(integer columnIndex) Returns a single column from the next row of a result set. |
Doctrine\DBAL\Driver\Statement | Gets the wrapped driver statement. |
integer | rowCount() Returns the number of rows affected by the last execution of this statement. |
public Statement(string sql, mixed conn, Doctrine\DBAL\Connection The)
Creates a new Statement for the given SQL and Connection.
public boolean bindParam(string name, mixed var, integer type, mixed value)
Binds a parameter to a value by reference.
Binding a parameter by reference does not support DBAL mapping types.
public boolean bindValue(mixed name, mixed value, mixed type, $value The)
Binds a parameter value to the statement.
The value can optionally be bound with a PDO binding type or a DBAL mapping type. If bound with a DBAL mapping type, the binding type is derived from the mapping type and the value undergoes the conversion routines of the mapping type before being bound.
public boolean closeCursor()
Closes the cursor, freeing the database resources used by this statement.
public integer columnCount()
Returns the number of columns in the result set.
public string errorCode()
Fetches the SQLSTATE associated with the last operation on the statement.
public array errorInfo()
Fetches extended error information associated with the last operation on the statement.
public boolean execute(mixed params)
Executes the statement with the currently bound parameters.
public mixed fetch(integer fetchStyle)
Fetches the next row from a result set.
public array fetchAll(integer fetchStyle, integer columnIndex)
Returns an array containing all of the result set rows.
public mixed fetchColumn(integer columnIndex)
Returns a single column from the next row of a result set.
public Doctrine\DBAL\Driver\Statement getWrappedStatement()
Gets the wrapped driver statement.
public integer rowCount()
Returns the number of rows affected by the last execution of this statement.
A thin wrapper around a Doctrine\DBAL\Driver\Statement that adds support for logging, DBAL mapping types, etc.