16 #ifndef QGSSQLITEEXPRESSIONCOMPILER_H 17 #define QGSSQLITEEXPRESSIONCOMPILER_H 23 #include "qgis_core.h" 45 explicit QgsSQLiteExpressionCompiler(
const QgsFields &fields );
49 Result
compileNode(
const QgsExpressionNode *node, QString &str )
override;
51 QString
quotedValue(
const QVariant &value,
bool &ok )
override;
53 QString
castToReal(
const QString &value )
const override;
54 QString
castToInt(
const QString &value )
const override;
60 #endif // QGSSQLITEEXPRESSIONCOMPILER_H Container of fields for a vector layer.
virtual QString quotedValue(const QVariant &value, bool &ok)
Returns a quoted attribute value, in the format expected by the provider.
Generic expression compiler for translation to provider specific SQL WHERE clauses.
virtual QString sqlFunctionFromFunctionName(const QString &fnName) const
Return the SQL function for the expression function.
virtual QString castToInt(const QString &value) const
Casts a value to a integer result.
virtual QString castToReal(const QString &value) const
Casts a value to a real result.
virtual QString quotedIdentifier(const QString &identifier)
Returns a quoted column identifier, in the format expected by the provider.
virtual Result compileNode(const QgsExpressionNode *node, QString &str)
Compiles an expression node and returns the result of the compilation.