16 #ifndef QGSSQLITEEXPRESSIONCOMPILER_H
17 #define QGSSQLITEEXPRESSIONCOMPILER_H
23 #include "qgis_core.h"
48 explicit QgsSQLiteExpressionCompiler(
const QgsFields &fields,
bool ignoreStaticNodes =
false );
54 QString
quotedValue(
const QVariant &value,
bool &ok )
override;
57 QString
castToReal(
const QString &value )
const override;
58 QString
castToInt(
const QString &value )
const override;
59 QString
castToText(
const QString &value )
const override;
Abstract base class for all nodes that can appear in an expression.
Container of fields for a vector layer.
Generic expression compiler for translation to provider specific SQL WHERE clauses.
virtual Result compileNode(const QgsExpressionNode *node, QString &str)
Compiles an expression node and returns the result of the compilation.
virtual QStringList sqlArgumentsFromFunctionName(const QString &fnName, const QStringList &fnArgs) const
Returns the Arguments for SQL function for the expression function.
virtual QString quotedValue(const QVariant &value, bool &ok)
Returns a quoted attribute value, in the format expected by the provider.
virtual QString castToText(const QString &value) const
Casts a value to a text result.
virtual QString castToInt(const QString &value) const
Casts a value to a integer result.
virtual QString quotedIdentifier(const QString &identifier)
Returns a quoted column identifier, in the format expected by the provider.
virtual QString sqlFunctionFromFunctionName(const QString &fnName) const
Returns the SQL function for the expression function.
virtual QString castToReal(const QString &value) const
Casts a value to a real result.