Sql2Nordic
This module contains all functions for getting the nordic out from the database and creating NordicEvent object out of them.
Functions and Classes
-
getEventRootId(pid, db_conn=None)
Function for getting nordic event root id from nordic event.
| Parameters: | pid (int) – persistent id of the event/solution |
| Returns: | event root id as integer or None if pid is not found |
-
getNordic(pid, db_conn=None)
Method that reads a nordic event with id event_id from the database and creates NordicEvent object from the query
| Parameters: | int event_id (list) – Event id of the event or list of event_ids |
| Returns: | List of NordicEvent objects or an empty list if none are found |
-
getNordicsRoot(root_pid, db_conn=None)
Method for getting all events attached to a root id from the database and returning them in a array.
| Parameters: | root_pid (int) – root pid of the event root you want to fetch |
| Returns: | Array of NordicEvent objects |