DDLStatement
class DDLStatement extends Statement
The class JsonSQLStatement Represents a prepared statement and, after the statement is executed, an associated result set.
Properties
protected JsonSQL | $jsonsql | from Statement | |
protected object | $request | from Statement | |
protected array | $result | from Statement | |
protected int | $rowCount | from Statement | |
protected array | $params | from Statement | |
protected Engine | $engine | from Statement |
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.
Checks if a value corresponds to its type and if it is safety in case of string
function executeCompoundSelect
function executeSelect
function executeInsert
function executeUpdate
function executeDelete
Executes a prepared 'create table' statement.
Executes a prepared 'alter table' statement.
function executeTruncate
Executes a prepared 'drop table' statement.
Details
in Statement 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.
in 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.
in Statement at line 202
bool
execute(array $parameters = array())
Executes a prepared statement.
in Statement at line 242
int
rowCount()
Returns the number of rows affected by the last SQL statement
in Statement at line 253
int
columnCount()
Returns the number of columns in the result set
in Statement 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 191
protected bool
executeCompoundSelect()
function executeCompoundSelect
at line 203
protected bool
executeSelect()
function executeSelect
at line 215
protected bool
executeInsert()
function executeInsert
at line 227
protected bool
executeUpdate()
function executeUpdate
at line 239
protected bool
executeDelete()
function executeDelete
at line 54
protected bool
executeCreateTable()
Executes a prepared 'create table' statement.
at line 92
protected bool
executeAlterTable()
Executes a prepared 'alter table' statement.
at line 251
protected bool
executeTruncate()
function executeTruncate
at line 175
protected bool
executeDropTable()
Executes a prepared 'drop table' statement.