slippinj.databases package¶
Subpackages¶
Submodules¶
slippinj.databases.db_factory module¶
-
class
slippinj.databases.db_factory.
DBFactory
[source]¶ Bases:
object
Return instances of the databases
-
get_driver
(injector, driver, db_host='localhost', db_user='root', db_pwd=None, db_port=None, db_name=None)[source]¶ Return a connection to the given database using selected driver. In case given driver is not implemented a NotImplementedError is raised :param injector: Injector :param driver: string :param db_host: string :param db_user: string :param db_pwd: string :param db_port: int :param db_name: string :return: Selected driver instance
-