Пример #1
0
def initialize_app():
    verify_parameters()

    db = storage.prepare_storage(database_connector())
    ensure_data(db)

    session_manager = storage.DBSessionFactory(db)
    return api.create_api([session_manager])
Пример #2
0
import common
import storage


common.verify_parameters()
storage.migrate_db(common.database_connector())
Пример #3
0
import common
import storage

common.verify_parameters()
storage.migrate_db(common.database_connector())