Class: QgsDatabaseSchemaItem¶
A Collection that represents a database schema item
Added in version 3.16.
Class Hierarchy¶
Base classes¶
A Collection: logical collection of layers or subcollections, e.g. GRASS location/mapset, database? wms source? |
|
Base class for all items in the model. |
|
- class qgis.core.QgsDatabaseSchemaItem[source]¶
Bases:
QgsDataCollectionItem
- __init__(parent: QgsDataItem | None, name: str | None, path: str | None = '', providerKey: str | None = '')
Constructor for QgsDatabaseSchemaItem, with the specified
parent
item.The
name
argument specifies the text to show in the model for the item. A translated string should be used wherever appropriate.The
path
argument gives the item path in the browser tree. Thepath
string can take any form, butQgsSchemaItem
items pointing to different logical locations should always use a different itempath
.The optional
providerKey
string can be used to specify the key for theQgsDataItemProvider
that created this item.- Parameters:
parent (Optional[QgsDataItem])
name (Optional[str])
path (Optional[str] = '')
providerKey (Optional[str] = '')