def init_schema(self, *args, **kwargs): """ Setup the projector database and initialize the schema. Declarative uses table classes to define schema. """ self.db_url = init_url('projector') session, metadata = init_db(self.db_url, base=Base) metadata.create_all(checkfirst=True) return session
def init_schema(*args, **kwargs): """ Setup the projector database and initialize the schema. Declarative uses table classes to define schema. """ url = init_url("projector") session, metadata = init_db(url, base=Base) Base.metadata.create_all(checkfirst=True) return session