Class||Interface SQLQuerier
Constants
ORDER_BY_ASC
ORDER_BY_ASC = 'ASC'
Tags
None found |
ORDER_BY_DESC
ORDER_BY_DESC = 'DESC'
Tags
None found |
Methods
select()
select(string $query, \string[string] $parameters = array(), $fetch_mode = \SelectQueryResult::FETCH_ASSOC) : \SelectQueryResult
executes the <code>$query</code> sql request and returns the query result.
Query will first be converted into the specific sgbd dialect.
Next query functions will be converted into the specific sgbd dialect.
Then query vars ":sample_query_var" will be replaced by the value of
the $parameters['sample_query_var']
variable if existing.
If not (there's a lot of chance that you have forgotten to register this
query var in the $parameters
map), the query var won't be replaced
Parameters
string | $query | the query to execute |
\string[string] | $parameters | the query_var map |
$fetch_mode |
Returns
the query result set
- Inherited from \SQLQuerier
Tags
None found |
inject()
inject(string $query, \string[string] $parameters = array()) : \InjectQueryResult
executes the <code>$query</code> sql request.
Query will first be converted into the specific sgbd dialect.
Next query functions will be converted into the specific sgbd dialect.
Then query vars ":sample_query_var" will be replaced by the value of
the $parameters['sample_query_var']
variable if existing.
If not (there's a lot of chance that you have forgotten to register this
query var in the $parameters
map), the query var won't be replaced
Parameters
string | $query | the query to execute |
\string[string] | $parameters | the query_var map |
Returns
the query result
- Inherited from \SQLQuerier
Tags
None found |
enable_query_translator()
enable_query_translator()
- Inherited from \SQLQuerier
Tags
None found |
disable_query_translator()
disable_query_translator()
- Inherited from \SQLQuerier
Tags
None found |
get_executed_requests_count()
get_executed_requests_count()
- Inherited from \SQLQuerier
Tags
None found |