PreparedQueryInterface
in
Tags
Table of Contents
Methods
- close() : bool
- Explicity closes the statement.
- execute() : bool|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() : $this
- Prepares the query against the database, and saves the connection info necessary to execute the query later.
Methods
close()
Explicity closes the statement.
public
close() : bool
Tags
Return values
boolexecute()
Takes a new set of data and runs it against the currently prepared query. Upon success, will return a Results object.
public
execute(mixed ...$data) : bool|ResultInterface
Parameters
- $data : mixed
Tags
Return values
bool|ResultInterfacegetErrorCode()
Returns the error code created while executing this statement.
public
getErrorCode() : int
Return values
intgetErrorMessage()
Returns the error message created while executing this statement.
public
getErrorMessage() : string
Return values
stringgetQueryString()
Returns the SQL that has been prepared.
public
getQueryString() : string
Return values
stringprepare()
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 = [] ]) : $this
Parameters
- $sql : string
- $options : array<string|int, mixed> = []