Source code for stalker.db.setup

#-*- coding: utf-8 -*-



#----------------------------------------------------------------------
[docs]def do_setup(): """ This is a utillty function that helps to connect the system to the given database in the config file. These are the steps: 1. It reads the config.py file to get the database address of the studio 2. creates the engine 3. creates the metadata 4. reads the database tables 5. reads the object model of stalker 6. creates the mapper 7. creates the session and binds the engine to it 8. returns the session """ pass