spinetoolbox.spine_db_parcel
¶
SpineDBParcel class.
- authors
Marin (KTH)
- date
10.5.2020
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) –
- push_parameter_definition_ids(self, db_map_ids, entity_type)[source]¶
Pushes parameter_definition ids.
- full_push_object_class_ids(self, db_map_ids)[source]¶
Pushes parameter definitions associated with given object classes. This essentially full_pushes the object classes and their parameter definitions.
- full_push_relationship_class_ids(self, db_map_ids)[source]¶
Pushes parameter definitions associated with given relationship classes. This essentially full_pushes the relationships classes, their parameter definitions, and their member object classes.
- full_push_object_ids(self, db_map_ids)[source]¶
Pushes parameter values associated with objects and with any relationships involving those objects. This essentially full_pushes objects, their relationships, all the parameter values, and all the necessary classes, definitions, and lists.
- full_push_relationship_ids(self, db_map_ids)[source]¶
Pushes parameter values associated with relationships. This essentially full_pushes relationships, their parameter values, and all the necessary classes, definitions, and lists.
- inner_push_object_ids(self, db_map_ids)[source]¶
Pushes object ids, cascading relationship ids, and the associated parameter values, but not any entity classes or parameter definitions. Mainly intended for the Duplicate object action.
- inner_push_relationship_ids(self, db_map_ids)[source]¶
Pushes relationship ids, and the associated parameter values, but not any entity classes or parameter definitions.