blob: b571e881b06c946f1ef56bb796262acde55b9409 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import todo.db.init
_database = None
def init(path):
global _database
_database = todo.db.init.init(path)
def cursor():
global _database
return _database.cursor()
def commit():
global _database
_database.commit()
def close():
global _database
_database.close()
|