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