Class: atkPgsqlQuery
Source Location: /db/class.atkpgsqlquery.inc
Class atkPgsqlQuery
Method Summary
| String |
buildCount() |
Builds the SQL Select COUNT(*) query. This is different from select, because we do joins, like in a select, but we don't really select the fields. |
Methods
atkQuery &addJoin(
string
$table, string
$alias, string
$condition, bool
$outer
)
|
|
Makes a join SQL query for PostgreSQL
Parameters:
|
string |
$table: |
the table name |
|
string |
$alias: |
alias for the table |
|
string |
$condition: |
join condition |
|
bool |
$outer: |
Wether to use an outer (left) join or an inner join |
API Tags:
| Return: | The query object (for fluent usage) |
Redefinition of:
- atkQuery::addJoin()
- Add join to Join Array
String buildCount(
[bool
$distinct = FALSE]
)
|
|
Builds the SQL Select COUNT(*) query. This is different from select, because we do joins, like in a select, but we don't really select the fields.
Parameters:
|
bool |
$distinct: |
distinct rows? |
API Tags:
| Return: | a SQL Select COUNT(*) Query |
Redefinition of:
- atkQuery::buildCount()
- Builds the SQL Select COUNT(*) query. This is different from select, because we do joins, like in a select, but we don't really select the fields.
void _addLimiter(
&$query, string
$query
)
|
|
Add limiting clauses to the query.
Default implementation: no limit supported. Derived classes should implement this.
Parameters:
|
string |
$query: |
The query to add the limiter to |
|
|
&$query: |
|
Redefinition of:
- atkQuery::_addLimiter()
- Add limiting clauses to the query.