Documentation

PreparedQueryInterface

Prepared query interface

Table of Contents

close()  : mixed
Explicity closes the statement.
execute()  : ResultInterface
Takes a new set of data and runs it against the currently prepared query. Upon success, will return a Results object.
getErrorCode()  : int
Returns the error code created while executing this statement.
getErrorMessage()  : string
Returns the error message created while executing this statement.
getQueryString()  : string
Returns the SQL that has been prepared.
prepare()  : mixed
Prepares the query against the database, and saves the connection info necessary to execute the query later.

Methods

execute()

Takes a new set of data and runs it against the currently prepared query. Upon success, will return a Results object.

public execute(array<string|int, mixed> ...$data) : ResultInterface
Parameters
$data : array<string|int, mixed>
Return values
ResultInterface

getErrorCode()

Returns the error code created while executing this statement.

public getErrorCode() : int
Return values
int

getErrorMessage()

Returns the error message created while executing this statement.

public getErrorMessage() : string
Return values
string

getQueryString()

Returns the SQL that has been prepared.

public getQueryString() : string
Return values
string

prepare()

Prepares the query against the database, and saves the connection info necessary to execute the query later.

public prepare(string $sql[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
$sql : string
$options : array<string|int, mixed> = []

Passed to the connection's prepare statement.

Return values
mixed

Search results