QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
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;
54 QString
castToReal(
const QString &value )
const override;
55 QString
castToInt(
const QString &value )
const override;
56 QString
castToText(
const QString &value )
const override;
62 #endif // QGSSQLITEEXPRESSIONCOMPILER_H
virtual Result compileNode(const QgsExpressionNode *node, QString &str)
Compiles an expression node and returns the result of the compilation.
Container of fields for a vector layer.
Generic expression compiler for translation to provider specific SQL WHERE clauses.
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.
virtual QString sqlFunctionFromFunctionName(const QString &fnName) const
Returns the SQL function for the expression function.
Abstract base class for all nodes that can appear in an expression.
virtual QString castToReal(const QString &value) const
Casts a value to a real result.
virtual QStringList sqlArgumentsFromFunctionName(const QString &fnName, const QStringList &fnArgs) const
Returns the Arguments for SQL function for the expression function.
virtual QString quotedIdentifier(const QString &identifier)
Returns a quoted column identifier, in the format expected by the provider.