Exemplo n.º 1
0
def init_db():
    Base.metadata.create_all(new_engine())
Exemplo n.º 2
0
def init_db():
    engine = new_engine(None)
    engine.execute("CREATE DATABASE IF NOT EXISTS sendavailability "
                   "DEFAULT CHARACTER SET utf8mb4 "
                   "DEFAULT COLLATE utf8mb4_general_ci;")
    Base.metadata.create_all(new_engine())
Exemplo n.º 3
0
def init_db():
    Base.metadata.create_all(new_engine())
Exemplo n.º 4
0
def init_db():
    engine = new_engine(None)
    engine.execute("CREATE DATABASE IF NOT EXISTS sendavailability "
                   "DEFAULT CHARACTER SET utf8mb4 "
                   "DEFAULT COLLATE utf8mb4_general_ci;")
    Base.metadata.create_all(new_engine())