메소드 |
설명 |
|
__construct ( $primary_table = null ) |
Construct a Query |
|
column ( ) : array |
Execute and return the first first field from each row of this query |
|
create ( string $primary_table = null ) : Query |
Static helper method to create a new query instance |
|
distinct ( boolean $set = true ) : Query |
Set whether only distinct results should be returned |
|
from ( string $primary_table ) : Query |
Sets the primary table for the FROM statement |
|
get ( ) : string |
Obtain the SQL used to execute this query |
|
groupby ( string $value ) : Query |
Set the GROUP BY clause |
|
having ( $value ) |
|
|
join ( string $join, array $parameters = [], string $alias = null ) : Query |
Adds a JOIN table |
|
joined ( string $alias ) : boolean |
Discover if a table alias is already JOINed to this query |
|
keyvalue ( ) : array |
Execute and return key-value pairs from this query |
|
limit ( integer $value ) : Query |
Sets the LIMIT |
|
new_param_name ( string $prefix = 'param' ) : string |
Obtain a parameter name with an optionally specified prefix that has not yet been used |
|
offset ( integer $value ) : Query |
Sets the OFFSET |
|
orderby ( string $value ) : Query |
Set the ORDER BY clause |
|
params ( ) : array |
Obtain the parameter values needed for the query |
|
results ( string $class = null ) : array |
Execute and return the returns of this query |
|
row ( string $class = null ) : object |
Execute and return the first row of this query |
|
select ( array | string $fields ) : Query |
Adds fields to the SELECT statement |
|
set_select ( array | string $fields ) : Query |
Sets fields for the SELECT statement |
|
value ( ) : object |
Execute and return the first row of this query |
|
where ( string $operator = 'AND' ) : QueryWhere |
Create and/or return a QueryWhere object representing the where clause of this query |
|