Example #1
0
File: db.py Project: xtfc/pyboard2
def init():
	db = Database(app.config['DATABASE'])
	db.executescript(open_sql('schema'))
	db.close()
Example #2
0
File: db.py Project: xtfc/pyboard2
def test():
	db = Database(app.config['DATABASE'])
	db.executescript(open_sql('test'))
	db.close()