QGIS API Documentation 3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
QgsPostgresStringUtils Class Reference

The QgsPostgresStringUtils provides functions to handle postgres array like formatted lists in strings. More...

#include <qgspostgresstringutils.h>

Static Public Member Functions

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,2,3} or {"a","b","c"}.
 

Detailed Description

The QgsPostgresStringUtils provides functions to handle postgres array like formatted lists in strings.

Since
QGIS 3.8

Definition at line 34 of file qgspostgresstringutils.h.

Member Function Documentation

◆ buildArray()

QString QgsPostgresStringUtils::buildArray ( const QVariantList &  list)
static

Build a postgres array like formatted list in a string from a QVariantList.

Parameters
listThe list that needs to be stored to the string
Since
QGIS 3.8

Definition at line 125 of file qgspostgresstringutils.cpp.

◆ parseArray()

QVariantList QgsPostgresStringUtils::parseArray ( const QString &  string)
static

Returns a QVariantList created out of a string containing an array in postgres array format {1,2,3} or {"a","b","c"}.

Parameters
stringThe formatted list in a string
Since
QGIS 3.8

Definition at line 67 of file qgspostgresstringutils.cpp.


The documentation for this class was generated from the following files: