예제 #1
0
 def create_db():
     """Este comando inicializa o db"""
     try:
         db.create_all()
     except OperationError as err:
         print("ERRO")
         print(err)
예제 #2
0
 def create_db():
     """Este comando inicializa o db"""
     db.create_all()
예제 #3
0
 def create_db():
     """Este comando inicializa o banco de dados"""
     try:
         db.create_all()
     except Exception as err:
         print('Deu ruim... :(' + err)
예제 #4
0
def create_db():
    """Creates database"""
    db.create_all()
예제 #5
0
 def create_db():
     db.create_all()
예제 #6
0
 def create_db():
     """comando inicializa o BD """
     db.create_all()
예제 #7
0
 def create_db():
     """Esse comando inicializa o banco de dados
     """
     db.create_all()
예제 #8
0
 def create_db():
     """Este comando inicializa o Banco de Dados"""
     db.create_all()