LCOV - code coverage report
Current view: top level - core - qgssqliteexpressioncompiler.h (source / functions) Hit Total Coverage
Test: coverage.info.cleaned Lines: 0 1 0.0 %
Date: 2021-04-10 08:29:14 Functions: 0 0 -
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /***************************************************************************
       2                 :            :                              qgssqliteexpressioncompiler.h
       3                 :            :                              ---------------------------------
       4                 :            :     begin                : November 2015
       5                 :            :     copyright            : (C) 2015 Nyall Dawson
       6                 :            :     email                : nyall dot dawson at gmail dot com
       7                 :            :  ***************************************************************************
       8                 :            :  *                                                                         *
       9                 :            :  *   This program is free software; you can redistribute it and/or modify  *
      10                 :            :  *   it under the terms of the GNU General Public License as published by  *
      11                 :            :  *   the Free Software Foundation; either version 2 of the License, or     *
      12                 :            :  *   (at your option) any later version.                                   *
      13                 :            :  *                                                                         *
      14                 :            :  ***************************************************************************/
      15                 :            : 
      16                 :            : #ifndef QGSSQLITEEXPRESSIONCOMPILER_H
      17                 :            : #define QGSSQLITEEXPRESSIONCOMPILER_H
      18                 :            : 
      19                 :            : #define SIP_NO_FILE
      20                 :            : 
      21                 :            : ///@cond PRIVATE
      22                 :            : 
      23                 :            : #include "qgis_core.h"
      24                 :            : #include "qgssqlexpressioncompiler.h"
      25                 :            : 
      26                 :            : /**
      27                 :            :  * \ingroup core
      28                 :            :  * \class QgsSQLiteExpressionCompiler
      29                 :            :  * \brief Expression compiler for translation to SQlite SQL WHERE clauses.
      30                 :            :  *
      31                 :            :  * This class is designed to be used by SpatiaLite and OGR providers.
      32                 :            :  * \note Not part of stable API, may change in future versions of QGIS
      33                 :            :  * \note Not available in Python bindings
      34                 :            :  * \since QGIS 2.16
      35                 :            :  */
      36                 :            : 
      37                 :          0 : class CORE_EXPORT QgsSQLiteExpressionCompiler : public QgsSqlExpressionCompiler
      38                 :            : {
      39                 :            :   public:
      40                 :            : 
      41                 :            :     /**
      42                 :            :      * Constructor for expression compiler.
      43                 :            :      * \param fields fields from provider
      44                 :            :      * \param ignoreStaticNodes If an expression has been partially precalculated due to static nodes in the expression, setting this argument to FALSE
      45                 :            :      * will prevent these precalculated values from being utilized during compilation of the expression. This flag significantly limits the effectiveness
      46                 :            :      * of compilation and should be used for debugging purposes only. (Since QGIS 3.18)
      47                 :            :      */
      48                 :            :     explicit QgsSQLiteExpressionCompiler( const QgsFields &fields, bool ignoreStaticNodes = false );
      49                 :            : 
      50                 :            :   protected:
      51                 :            : 
      52                 :            :     Result compileNode( const QgsExpressionNode *node, QString &str ) override;
      53                 :            :     QString quotedIdentifier( const QString &identifier ) override;
      54                 :            :     QString quotedValue( const QVariant &value, bool &ok ) override;
      55                 :            :     QString sqlFunctionFromFunctionName( const QString &fnName ) const override;
      56                 :            :     QStringList sqlArgumentsFromFunctionName( const QString &fnName, const QStringList &fnArgs ) const 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;
      60                 :            : 
      61                 :            : };
      62                 :            : 
      63                 :            : ///@endcond
      64                 :            : 
      65                 :            : #endif // QGSSQLITEEXPRESSIONCOMPILER_H

Generated by: LCOV version 1.14