QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
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... | |
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 119 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 64 of file qgspostgresstringutils.cpp.