Exemplo n.º 1
0
def db_init():
    global rec_db
    if rec_db is None:
        rec_db = connect()
        rec_db.text_factory = str
        for tn in sqlite_cmds.keys():
            create_table(tn, sqlite_cmds[tn])
        rec_db.commit()
Exemplo n.º 2
0
def db_init():
    global rec_db
    if rec_db is None:
        rec_db = connect()
        rec_db.text_factory = str
        for tn in sqlite_cmds.keys():
            create_table(tn, sqlite_cmds[tn])
        rec_db.commit()
Exemplo n.º 3
0
def drop_all():
    for tn in sqlite_cmds.keys():
        drop_table(tn)
Exemplo n.º 4
0
def drop_all():
    for tn in sqlite_cmds.keys():
        drop_table(tn)