QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
|
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"}. | |
The QgsPostgresStringUtils provides functions to handle postgres array like formatted lists in strings.
Definition at line 34 of file qgspostgresstringutils.h.
|
static |
Build a postgres array like formatted list in a string from a QVariantList.
list | The list that needs to be stored to the string |
Definition at line 125 of file qgspostgresstringutils.cpp.
|
static |
Returns a QVariantList created out of a string containing an array in postgres array format {1,2,3} or {"a","b","c"}.
string | The formatted list in a string |
Definition at line 67 of file qgspostgresstringutils.cpp.