Modified vCD connector method with minor changes
[osm/RO.git] / lcm / dbbase.py
1
2
3 class DbException(Exception):
4
5 def __init__(self, message, http_code=404):
6 self.http_code = http_code
7 Exception.__init__(self, message)
8
9 class dbbase(object):
10
11 def __init__(self):
12 pass
13
14 def db_connect(self, config):
15 pass
16
17 def db_disconnect(self):
18 pass
19
20 def get_list(self, table, filter={}):
21 pass
22
23 def get_one(self, table, filter={}, fail_on_empty=True, fail_on_more=True):
24 pass
25
26 def create(self, table, indata):
27 pass
28
29 def del_list(self, table, filter={}):
30 pass
31
32 def del_one(self, table, filter={}, fail_on_empty=True):
33 pass
34
35