コード例 #1
0
ファイル: manage.py プロジェクト: ClingApp/cling_api
def syncdb():
    """ Creates a database with all of the tables defined in
        your Alchemy models
    """

    db.drop_all()
    db.create_all()
コード例 #2
0
ファイル: conftest.py プロジェクト: riquellopes/sac
 def fin():
     db.drop_all()
     db.create_all()
コード例 #3
0
ファイル: conftest.py プロジェクト: riquellopes/sac
def build_db(app):
    db.create_all()
コード例 #4
0
 def setup(self):
     db.create_all()
     db.session.commit()
コード例 #5
0
ファイル: app.py プロジェクト: e-carlin/banter-api-py
def create_db():
    """Creates the db tables."""
    db.create_all()