NodeSelect class
SELECT node.
Contents
Base classes
- class Node
- Abstract node class.
Constructors, destructors, conversion operators
-
NodeSelect(const QList<QgsSQLStatement::
NodeTableDef*>& tableList, const QList<QgsSQLStatement:: NodeSelectedColumn*>& columns, bool distinct) - Constructor.
Public functions
-
void accept(QgsSQLStatement::
Visitor& v) const override - Support the visitor pattern.
-
void appendJoin(QgsSQLStatement::
NodeJoin* join) - Append a join.
-
auto clone() const -> QgsSQLStatement::
Node* override - Generate a clone of this node.
-
auto columns() const -> QList<QgsSQLStatement::
NodeSelectedColumn*> - Returns the list of columns.
- auto distinct() const -> bool
- Returns if the SELECT is DISTINCT.
- auto dump() const -> QString override
- Abstract virtual dump method.
-
auto joins() const -> QList<QgsSQLStatement::
NodeJoin*> - Returns the list of joins.
-
auto nodeType() const -> QgsSQLStatement::
NodeType override - Abstract virtual that returns the type of this node.
-
auto orderBy() const -> QList<QgsSQLStatement::
NodeColumnSorted*> - Returns the list of order by columns.
-
void setJoins(const QList<QgsSQLStatement::
NodeJoin*>& joins) - Sets joins.
-
void setOrderBy(const QList<QgsSQLStatement::
NodeColumnSorted*>& orderBy) - Sets order by columns.
-
void setWhere(QgsSQLStatement::
Node* where) - Sets where clause.
-
auto tables() const -> QList<QgsSQLStatement::
NodeTableDef*> - Returns the list of tables.
-
auto where() const -> QgsSQLStatement::
Node* - Returns the where clause.
Function documentation
void QgsSQLStatement:: NodeSelect:: accept(QgsSQLStatement:: Visitor& v) const override
Support the visitor pattern.
| Parameters | |
|---|---|
| v | A visitor that visits this node. |
For any implementation this should look like
C++:
v.visit( *this );
Python:
v.visit( self)
QgsSQLStatement:: Node* QgsSQLStatement:: NodeSelect:: clone() const override
Generate a clone of this node.
| Returns | a deep copy of this node. |
|---|
Make sure that the clone does not contain any information which is generated in prepare and context related. Ownership is transferred to the caller.
QString QgsSQLStatement:: NodeSelect:: dump() const override
Abstract virtual dump method.
| Returns | A statement which represents this node as string |
|---|
QgsSQLStatement:: NodeType QgsSQLStatement:: NodeSelect:: nodeType() const override
Abstract virtual that returns the type of this node.
| Returns | The type of this node |
|---|