QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
Class for parsing fragments of SQL statements, such as an expression or where clause. More...
#include <qgssqlstatement.h>
Public Member Functions | |
QgsSQLStatementFragment (const QString &fragment) | |
Constructor for QgsSQLStatementFragment of the specified fragment. | |
Public Member Functions inherited from QgsSQLStatement | |
QgsSQLStatement (const QgsSQLStatement &other) | |
QgsSQLStatement (const QString &statement) | |
Creates a new statement based on the provided string. | |
virtual | ~QgsSQLStatement () |
void | acceptVisitor (QgsSQLStatement::Visitor &v) const |
Entry function for the visitor pattern. | |
bool | doBasicValidationChecks (QString &errorMsgOut) const |
Performs basic validity checks. | |
QString | dump () const |
Returns the statement string, constructed from the internal abstract syntax tree. | |
bool | hasParserError () const |
Returns true if an error occurred when parsing the input statement. | |
QgsSQLStatement & | operator= (const QgsSQLStatement &other) |
QString | parserErrorString () const |
Returns parser error. | |
const QgsSQLStatement::Node * | rootNode () const |
Returns the root node of the statement. | |
QString | statement () const |
Returns the original, unmodified statement string. | |
Additional Inherited Members | |
Public Types inherited from QgsSQLStatement | |
enum | BinaryOperator { boOr , boAnd , boEQ , boNE , boLE , boGE , boLT , boGT , boLike , boNotLike , boILike , boNotILike , boIs , boIsNot , boPlus , boMinus , boMul , boDiv , boIntDiv , boMod , boPow , boConcat } |
list of binary operators More... | |
enum | JoinType { jtDefault , jtLeft , jtLeftOuter , jtRight , jtRightOuter , jtCross , jtInner , jtFull } |
list of join types More... | |
enum | NodeType { ntUnaryOperator , ntBinaryOperator , ntInOperator , ntBetweenOperator , ntFunction , ntLiteral , ntColumnRef , ntSelectedColumn , ntSelect , ntTableDef , ntJoin , ntColumnSorted , ntCast } |
Node type. More... | |
enum | UnaryOperator { uoNot , uoMinus } |
list of unary operators More... | |
Static Public Member Functions inherited from QgsSQLStatement | |
static QString | quotedIdentifier (QString name) |
Returns a quoted column reference (in double quotes) | |
static QString | quotedIdentifierIfNeeded (const QString &name) |
Returns a quoted column reference (in double quotes) if needed, or otherwise the original string. | |
static QString | quotedString (QString text) |
Returns a quoted version of a string (in single quotes) | |
static QString | stripMsQuotedIdentifier (QString text) |
Remove double quotes from an Microsoft style identifier. | |
static QString | stripQuotedIdentifier (QString text) |
Remove double quotes from an identifier. | |
Static Public Attributes inherited from QgsSQLStatement | |
static const char * | BINARY_OPERATOR_TEXT [] |
static const char * | JOIN_TYPE_TEXT [] |
static const char * | UNARY_OPERATOR_TEXT [] |
Protected Member Functions inherited from QgsSQLStatement | |
QgsSQLStatement (const QString &statement, bool allowFragments) | |
Constructor for QgsSQLStatement, with the specified statement. | |
Protected Attributes inherited from QgsSQLStatement | |
bool | mAllowFragments = false |
QString | mParserErrorString |
QgsSQLStatement::Node * | mRootNode = nullptr |
QString | mStatement |
Class for parsing fragments of SQL statements, such as an expression or where clause.
Definition at line 870 of file qgssqlstatement.h.
QgsSQLStatementFragment::QgsSQLStatementFragment | ( | const QString & | fragment | ) |
Constructor for QgsSQLStatementFragment of the specified fragment.
Definition at line 775 of file qgssqlstatement.cpp.