Class: QgsHstoreUtils

Provides utility functions for handling hstore-formatted strings.

Added in version 3.4.

Static Methods

build

Build a hstore-formatted string from a QVariantMap.

parse

Returns a QVariantMap object containing the key and values from a hstore-formatted string.

class qgis.core.QgsHstoreUtils[source]

Bases: object

static build(map: Dict[str, Any]) str[source]

Build a hstore-formatted string from a QVariantMap.

Parameters:

map (Dict[str, Any]) – The map to format as a string

Added in version 3.4.

Return type:

str

static parse(string: str | None) Dict[str, Any][source]

Returns a QVariantMap object containing the key and values from a hstore-formatted string.

Parameters:

string (Optional[str]) – The hstored-formatted string

Added in version 3.4.

Return type:

Dict[str, Any]