A named prepared statement. See pq\Connection::prepare().
string
$name#string
$query#
The query string
used to prepare the statement.array
$types#
List of corresponding query parameter type OIDs for the prepared statement.Prepare a new statement.
void
pq\Statement::__construct(pq\Connection $conn, string
$name, string
$query[, array
$types = NULL
[, bool
$async = FALSE
]])
Bind a variable to an input parameter.
void
pq\Statement::bind(int
$param_no, mixed
&$param_ref)
Free the server resources used by the prepared statement, so it can no longer be executed.
Asynchronously free the server resources used by the
Describe the parameters of the prepared statement.
Asynchronously describe the parameters of the prepared statement.
void
pq\Statement::descAsync(callable
$callback)
Execute the prepared statement.
pq\Result pq\Statement::exec([array
$params = NULL
])
Asynchronously execute the prepared statement.
void
pq\Statement::execAsync([array
$params = NULL
, [callable
$cb = NULL
]])
Re-prepare a statement that has been deallocated. This is a no-op on already open statements.
Asynchronously re-prepare a statement that has been