armi.bookkeeping.db.factory module
- armi.bookkeeping.db.factory.databaseFactory(dbName: str, permission: str, version: Optional[str] = None)[source]
Return an appropriate object for interacting with a database file.
- Parameters:
Notes
This is not a proper factory, as the different database versions do not present a common interface. However, this is useful code, since it at least creates an object based on some knowledge of how to probe around. This allows client code to just interrogate the type of the returned object to figure out to do based on whatever it needs.