QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
qgsprovidersqlquerybuilder.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsprovidersqlquerybuilder.h
3begin : August 2022
4copyright : (C) 2022 by Nyall Dawson
5email : nyall dot dawson at gmail dot com
6 ***************************************************************************/
7
8/***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16#ifndef QGSPROVIDERSQLQUERYBUILDER_H
17#define QGSPROVIDERSQLQUERYBUILDER_H
18
19#include "qgis_core.h"
20#include "qgis_sip.h"
21
22#include <QString>
23
34{
35
36 public:
37
39
45 virtual QString createLimitQueryForTable( const QString &schema, const QString &name, int limit = 10 ) const;
46
50 virtual QString quoteIdentifier( const QString &identifier ) const;
51};
52
53#endif // QGSPROVIDERSQLQUERYBUILDER_H
Provides an interface for provider-specific creation of SQL queries.
virtual ~QgsProviderSqlQueryBuilder()
virtual QString quoteIdentifier(const QString &identifier) const
Returns a properly quoted version of a table/schema identifier.
virtual QString createLimitQueryForTable(const QString &schema, const QString &name, int limit=10) const
Returns a result size limited SQL query string generated for the given schema and table name,...