Exemple #1
0
def prep(dbms="sqlite:///snoopy.db"):
    global db
    global tables
    global metadata
    db=create_engine(dbms)
    db.debug=True
    create_tables(db)
    tables = get_tables()
    metadata = MetaData(db)
    metadata.reflect()
Exemple #2
0
def prep(dbms="sqlite:///snoopy.db"):
    global db
    global tables
    global metadata
    db = create_engine(dbms)
    db.debug = True
    create_tables(db)
    tables = get_tables()
    metadata = MetaData(db)
    metadata.reflect()