Class: QgsHstoreUtils

Provides utility functions for handling hstore-formatted strings.

Added in version 3.4.

List of all members, including inherited members

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 | None, Any]) str[source]

Build a hstore-formatted string from a QVariantMap.

Parameters:

map (dict[Optional[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]