Exemple #1
0
def db_drop_all():
    """移除所有数据表"""

    if prompt_book("Are you sure? You will lose all your data!"):
        db.drop_all()
Exemple #2
0
 def tearDown(self):
     db.session.remove()
     db.drop_all()