def create_db():
    db.create_tables([OrderItem])
Beispiel #2
0
def main():
    db.connect()
    db.create_tables([BigBoss])
def create_db_and_tables():
    print('=== create db and tables ===')
    db.connect()
    db.create_tables([Person, Pet])
Beispiel #4
0
def create_tables():
    print('=== create_tables ===')
    db.connect()
    db.create_tables([Foo])
def create_tables():
    db.create_tables([TranFoo, TranBar])
Beispiel #6
0
def main():
    db.connect()
    db.create_tables([BigIndex])
def drop_table():
    db.create_tables([EModel])
def create_table():
    db.create_tables([EModel])
def create():
    db.connect()
    db.create_tables([Comment])
    Comment.create(parent_id=1)
    Comment.create(parent_id=1)
    Comment.create(parent_id=2)