Expressions
class Expressions (View source)
Templating like class for building SQL statements.
Examples: 'name = :name AND author = :author' 'id = IN(:ids)' 'id IN(:subselect)'
Constants
ParameterMarker |
|
Methods
No description
Bind a value to the specific one based index. There must be a bind marker for each value bound or to_s() will throw an exception.
No description
Returns all the values currently bound.
Returns the connection object.
Sets the connection object. It is highly recommended to set this so we can use the adapter's native escaping mechanism.
No description
Details
at line 25
__construct($connection, $expressions = null)
at line 50
bind($parameter_number, $value)
Bind a value to the specific one based index. There must be a bind marker for each value bound or to_s() will throw an exception.
at line 58
bind_values($values)
at line 66
values()
Returns all the values currently bound.
at line 74
get_connection()
Returns the connection object.
at line 85
set_connection(string $connection)
Sets the connection object. It is highly recommended to set this so we can use the adapter's native escaping mechanism.