pycram.orm.logging_hooks#
Functions#
|
Insert a plan into the database. Inserts all nodes and edges from the given plan into the database if the nodes and |
Module Contents#
- pycram.orm.logging_hooks.insert(plan: pycram.plan.Plan, session: sqlalchemy.orm.Session, use_progress_bar: bool = True, progress_bar: typing_extensions.Optional[tqdm.tqdm] = None)#
Insert a plan into the database. Inserts all nodes and edges from the given plan into the database if the nodes and associated designators are present in the ORM model. Otherwise, check the genereate_orm.py file in scrip/ and the model.py file for explicitly mapped classes.
- Parameters:
plan – Plan to be inserted into the database.
session – Session object for database interaction.
use_progress_bar – If True, a progress bar will be displayed during the insertion process.
progress_bar – Optional progress bar object. If not provided, a new one will be created.