Module trase.tools.pcs.references.insert
Functions
def insert_child_flows_reference(parent_ref_id: int, *, autocommit=True, cnx=None, cur=None, **reference_kwargs) ‑> int-
Inserts a new flows reference into the database that is a child of an existing flows reference, unless the reference already exists.
Columns not explicitly supplied as keyword arguments will be copied from the parent, with the exception of the following:
- id - description - parent_ref_id and other_parent_ref_id - latest - updated:param reference_kwargs: keyword arguments like "title_suffix" or "version" that will be passed through to
insert_flows_reference():return: the id of the newly-created reference
def insert_child_links_reference(parent_ref_id: int, *, autocommit=True, cnx=None, cur=None, **reference_kwargs) ‑> int-
Inserts a new links reference into the database that is a child of an existing links reference, unless the reference already exists.
Columns not explicitly supplied as keyword arguments will be copied from the parent, with the exception of the following:
- id - description - parent_ref_id and other_parent_ref_id - latest:param reference_kwargs: keyword arguments like "title_suffix" or "version" that will be passed through to
insert_links_reference():return: the id of the newly-created reference
def insert_child_node_attributes_reference(parent_ref_id: int, *, autocommit=True, cnx=None, cur=None, **reference_kwargs) ‑> int-
Inserts a new node_attributes reference into the database that is a child of an existing node_attributes reference, unless the reference already exists.
Columns not explicitly supplied as keyword arguments will be copied from the parent, with the exception of the following:
- id - parent_ref_id and other_parent_ref_id - latest:param reference_kwargs: keyword arguments like "title_suffix" or "version" that will be passed through to
insert_node_attributes_reference():return: the id of the newly-created reference
def insert_flows_reference(title_suffix=None, description=None, country_id=None, commodity_id=None, version=None, version_type=None, parent_ref_id=None, other_parent_ref_id=None, commodity_equivalence_group_id=None, autocommit=True, cnx=None, cur=None)def insert_links_reference(title_suffix=None, description=None, country_id=None, commodity_id=None, version=None, version_type=None, latest=False, parent_ref_id=None, autocommit=True, cnx=None, cur=None)def insert_node_attributes_reference(title_suffix=None, country_id=None, commodity_id=None, version=None, version_type=None, latest=False, parent_ref_id=None, autocommit=True, cnx=None, cur=None)