pydetecdiv.persistence.project
Project persistence management for persistence layer
- pydetecdiv.persistence.project.open_project(dbname: str = None, dbms: str = None) ShallowDb
A function to open a shallow persistence from its name. The default type of persistence is defined in the [project] sections of the configuration file settings.ini
- Parameters:
dbname – the persistence name
dbms – A str specifying the database management system to use with the project
- Returns:
a shallowDb abstract connector encapsulating the concrete connectors
- pydetecdiv.persistence.project.list_projects(dbms: str = None) list[str]
Return a list of projects corresponding to a given database manager system
- Parameters:
dbms – the dbms
- Returns:
the list of projects
- pydetecdiv.persistence.project.delete_project(dbname: str = None, dbms: str = None) None
Deletes the project from its name
- Parameters:
dbname – the name of the database to delete
dbms – the dbms