Prepared query class.
Prepared query class.
This class represents a database query (optionally with placeholders) that has not been executed yet.
To obtain an AnewtDatabasePreparedQuery instance, use AnewtDatabaseConnection::prepare(). In many cases the other query methods in AnewtDatabaseConnection suffice, so it is not likely you will be dealing with prepared queries directly.
To execute the prepared query, use either AnewtDatabasePreparedQuery::execute() or AnewtDatabasePreparedQuery::executev(), depending on how you want to pass the parameters to be filled in in the query template. See AnewtDatabaseSQLTemplate for more information.
execute($values=null) ¶Execute the query using the values passed as multiple parameters.
$valuesZero or more values to be substituted for the placeholders.
An AnewtDatabaseResultSet instance.
executev($values=null) ¶Execute the query using the values passed as a single parameter.
$valuesAn array of values to be substituted for the placeholders.
An AnewtDatabaseResultSet instance.
__construct($sql, $connection) [private] ¶Construct a new AnewtDatabasePreparedQuery.
Don't use this method directly: use $connection->prepare() instead.
$sqlSQL query template with ?int? style placeholders.
$connectionAn AnewtDatabaseConnection instance
$connection [private] ¶The associated AnewtDatabaseConnection.
$sql_template [private] ¶The associated AnewtDatabaseSQLTemplate.