16 #ifndef QGSSQLITEEXPRESSIONCOMPILER_H 17 #define QGSSQLITEEXPRESSIONCOMPILER_H 23 #include "qgis_core.h" 45 explicit QgsSQLiteExpressionCompiler(
const QgsFields &fields );
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;
55 QString
castToText(
const QString &value )
const override;
61 #endif // QGSSQLITEEXPRESSIONCOMPILER_H virtual QString sqlFunctionFromFunctionName(const QString &fnName) const
Returns the SQL function for the expression function.
Container of fields for a vector layer.
virtual QString castToInt(const QString &value) const
Casts a value to a integer result.
virtual QString castToText(const QString &value) const
Casts a value to a text result.
virtual QString quotedValue(const QVariant &value, bool &ok)
Returns a quoted attribute value, in the format expected by the provider.
Abstract base class for all nodes that can appear in an expression.
Generic expression compiler for translation to provider specific SQL WHERE clauses.
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.