QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsSQLStatementFragment Class Reference

Class for parsing fragments of SQL statements, such as an expression or where clause. More...

#include <qgssqlstatement.h>

Inheritance diagram for QgsSQLStatementFragment:
Inheritance graph
[legend]

Public Member Functions

 QgsSQLStatementFragment (const QString &fragment)
 Constructor for QgsSQLStatementFragment of the specified fragment.
 
- Public Member Functions inherited from QgsSQLStatement
 QgsSQLStatement (const QgsSQLStatement &other)
 Create a copy of this statement.
 
 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.
 
QgsSQLStatementoperator= (const QgsSQLStatement &other)
 Create a copy of this statement.
 
QString parserErrorString () const
 Returns parser error.
 
const QgsSQLStatement::NoderootNode () 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::NodemRootNode = nullptr
 
QString mStatement
 

Detailed Description

Class for parsing fragments of SQL statements, such as an expression or where clause.

Since
QGIS 3.16

Definition at line 874 of file qgssqlstatement.h.

Constructor & Destructor Documentation

◆ QgsSQLStatementFragment()

QgsSQLStatementFragment::QgsSQLStatementFragment ( const QString &  fragment)

Constructor for QgsSQLStatementFragment of the specified fragment.

Definition at line 775 of file qgssqlstatement.cpp.


The documentation for this class was generated from the following files: