SQLExpression
class SQLExpression
Abstract base class for an object representing an SQL query.
The various parts of the SQL query can be manipulated individually.
Methods
Swap some text in the SQL query with another.
Return the generated SQL string for this query
Swap the use of one table with another.
Determine if this query is empty, and thus cannot be executed
Generate the SQL statement for this query.
Details
at line 29
__get($field)
deprecated
deprecated since version 4.0
at line 37
__set($field, $value)
deprecated
deprecated since version 4.0
at line 52
replaceText(string $old, string $new)
Swap some text in the SQL query with another.
Note that values in parameters will not be replaced
at line 64
string
__toString()
Return the generated SQL string for this query
at line 82
renameTable(string $old, string $new)
Swap the use of one table with another.
at line 93
abstract bool
isEmpty()
Determine if this query is empty, and thus cannot be executed
at line 101
string
sql(array $parameters = array())
Generate the SQL statement for this query.
at line 119
SS_Query
execute()
Execute this query.