QGIS API Documentation  3.24.2-Tisler (13c1a02865)
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. More...
 
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"}. More...
 

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 122 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: