spinetoolbox.spine_db_parcel
SpineDBParcel class.
Module Contents
Classes
A class to create parcels of data from a Spine db. |
- class spinetoolbox.spine_db_parcel.SpineDBParcel(db_mngr)[source]
A class to create parcels of data from a Spine db. Mainly intended for the Export selection action in the Spine db editor:
push
methods push items with everything they need to live in a standalone db.full_push
andinner_push
methods do something more specific
Initializes the parcel object.
- Parameters
db_mngr (SpineDBManager) –
- _get_field_values(db_map, item_type, field, ids)[source]
Returns a list of field values for items of given type, having given ids.
- full_push_entity_class_ids(db_map_ids)[source]
Pushes parameter definitions associated with given entity classes. This essentially full_pushes the entity classes, their parameter definitions, and their member entity classes.
- full_push_entity_ids(db_map_ids)[source]
Pushes parameter values associated with entities and their elements. This essentially full_pushes entities, all the parameter values, and all the necessary classes, definitions, and lists.
- inner_push_entity_ids(db_map_ids)[source]
Pushes entity ids, cascading entity ids, and the associated parameter values, but not any entity classes or parameter definitions. Mainly intended for the Duplicate entity action.