stalker.db.setup

stalker.db.setup(settings=None)[source]

Utility function that helps to connect the system to the given database.

if the database is None then the it setups using the default database in the settings file.

Parameters:settings – This is a dictionary which has keys prefixed with “sqlalchemy” and shows the settings. The most important one is the engine. The default is None, and in this case it uses the settings from stalker.config.Config.database_engine_settings