Statement
abstract class Statement
The class JsonSQLStatement represents a prepared statement and, after the statement is executed, an associated result set.
Properties
protected JsonSQL | $jsonsql | ||
protected object | $request | ||
protected array | $result | ||
protected int | $rowCount | ||
protected array | $params | ||
protected Engine | $engine |
Methods
Binds a value to a corresponding named or question mark placeholder in the SQL statement that was used to prepare the statement.
Binds a PHP variable to a corresponding named or question mark placeholder in the SQL statement that was used to prepare the statement.
Executes a prepared statement.
Returns the number of rows affected by the last SQL statement
Returns the number of columns in the result set
Checks if a value corresponds to its type and if it is safety in case of string
Executes a prepared select statement with set opertations.
Executes a prepared select statement.
Executes a prepared insert statement.
Executes a prepared update statement.
Executes a prepared delete statement.
Executes a prepared 'create table' statement.
Executes a prepared 'alter table' statement.
Executes a prepared 'truncate' statement.
Executes a prepared 'drop table' statement.
Details
at line 138
bool
bindValue(mixed $parameter, mixed $value, int $type = \PDO::PARAM_STR)
Binds a value to a corresponding named or question mark placeholder in the SQL statement that was used to prepare the statement.
at line 189
bool
bindParam(mixed $parameter, mixed $variable, int $type = \PDO::PARAM_STR)
Binds a PHP variable to a corresponding named or question mark placeholder in the SQL statement that was used to prepare the statement.
the variable is bound as a reference and will only be evaluated at the time that execute() is called.
at line 202
bool
execute(array $parameters = array())
Executes a prepared statement.
at line 242
int
rowCount()
Returns the number of rows affected by the last SQL statement
at line 253
int
columnCount()
Returns the number of columns in the result set
at line 266
protected void
checkValue(string $value, int $type = \PDO::PARAM_STR)
Checks if a value corresponds to its type and if it is safety in case of string
at line 287
abstract protected bool
executeCompoundSelect()
Executes a prepared select statement with set opertations.
at line 295
abstract protected bool
executeSelect()
Executes a prepared select statement.
at line 303
abstract protected bool
executeInsert()
Executes a prepared insert statement.
at line 311
abstract protected bool
executeUpdate()
Executes a prepared update statement.
at line 319
abstract protected bool
executeDelete()
Executes a prepared delete statement.
at line 327
abstract protected bool
executeCreateTable()
Executes a prepared 'create table' statement.
at line 335
abstract protected bool
executeAlterTable()
Executes a prepared 'alter table' statement.
at line 343
abstract protected bool
executeTruncate()
Executes a prepared 'truncate' statement.
at line 351
abstract protected bool
executeDropTable()
Executes a prepared 'drop table' statement.