示例#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())