QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
qgspostgresstringutils.h
Go to the documentation of this file.
1/***************************************************************************
2 qgspostgresstringutils.h
3 ---------------------
4 begin : July 2019
5 copyright : (C) 2019 by David Signer
6 email : david at opengis dot ch
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 QGSPOSTGRESSTRINGUTILS_H
17#define QGSPOSTGRESSTRINGUTILS_H
18
19#include "qgis.h"
20#include "qgis_core.h"
21
22#include <qlist.h>
23
24#ifdef SIP_RUN
25% ModuleHeaderCode
27% End
28#endif
29
35class CORE_EXPORT QgsPostgresStringUtils
36{
37
38 public:
39
45 static QVariantList parseArray( const QString &string );
46
52 static QString buildArray( const QVariantList &list );
53
54 private:
55
63 static QString getNextString( const QString &txt, int &i, const QString &sep );
64};
65
66#endif //QGSPOSTGRESSTRINGUTILS_H
Provides functions to handle postgres array-like formatted lists in strings.
static QString buildArray(const QVariantList &list)
Build a postgres array like formatted list in a string from a QVariantList.
static QVariantList parseArray(const QString &string)
Returns a QVariantList created out of a string containing an array in postgres array format {1,...