コード例 #1
0
ファイル: base.py プロジェクト: isaideureka/abilian-core
def dropdb():
    """Drop the application DB."""
    confirm = input("Are you sure you want to drop the database? (Y/N) ")
    print("Dropping DB using engine: {}".format(db))
    if confirm.lower() == 'y':
        # with current_app.app_context():
        db.drop_all()
コード例 #2
0
ファイル: base.py プロジェクト: abilian/abilian-core
def dropdb():
    """Drop the application DB."""
    confirm = input("Are you sure you want to drop the database? (Y/N) ")
    print(f"Dropping DB using engine: {db}")
    if confirm.lower() == "y":
        # with current_app.app_context():
        db.drop_all()
コード例 #3
0
ファイル: base.py プロジェクト: debon/abilian-core
def dropdb():
  """
  Drops the application DB.
  """
  confirm = raw_input("Are you sure you want to drop the database? (Y/N) ")
  print("Dropping DB using engine: {}".format(db))
  if confirm.lower() == 'y':
    # with current_app.app_context():
    db.drop_all()
コード例 #4
0
ファイル: base.py プロジェクト: Nussy/owf2014
 def tearDown(self):
   #self.app.stop_services()
   db.session.remove()
   db.drop_all()
   db.engine.dispose() # ensure we close all db connections
コード例 #5
0
 def tearDown(self):
     #self.app.stop_services()
     db.session.remove()
     db.drop_all()
     db.engine.dispose()  # ensure we close all db connections