SQLite3Stmt
class SQLite3Stmt (View source)
A class that handles prepared statements for the SQLite 3 extension.
Methods
Returns the number of parameters within the prepared statement
Closes the prepared statement
Resets the prepared statement
Clears all current bound parameters
Executes a prepared statement and returns a result set object
Binds a parameter to a statement variable
Binds the value of a parameter to a statement variable
No description
Retrieves the SQL of the prepared statement. If expanded is FALSE, the unmodified SQL is retrieved.
Details
int
paramCount()
Returns the number of parameters within the prepared statement
bool
close()
Closes the prepared statement
bool
reset()
Resets the prepared statement
bool
clear()
Clears all current bound parameters
SQLite3Result|false
execute()
Executes a prepared statement and returns a result set object
bool
bindParam(string $param, mixed $var, int $type = SQLITE3_TEXT)
Binds a parameter to a statement variable
bool
bindValue(string $param, mixed $value, int $type = SQLITE3_TEXT)
Binds the value of a parameter to a statement variable
bool
readOnly()
No description
string|false
getSQL(bool $expand = false)
Retrieves the SQL of the prepared statement. If expanded is FALSE, the unmodified SQL is retrieved.
If expanded is TRUE, all query parameters are replaced with their bound values, or with an SQL NULL, if not already bound.