Definition at line 29 of file LumiDBHandler.py.
◆ __init__()
def python.LumiDBHandler.LumiDBHandler.__init__ |
( |
|
self | ) |
|
◆ closeAll()
def python.LumiDBHandler.LumiDBHandler.closeAll |
( |
|
self | ) |
|
Definition at line 113 of file LumiDBHandler.py.
116 print(
'LumiDBHandler.closeAllDB called')
119 for dbstring
in list(self.__class__.dbDict.keys()):
120 self.closeDB(dbstring)
◆ closeAllDB()
def python.LumiDBHandler.LumiDBHandler.closeAllDB |
( |
|
self | ) |
|
◆ closeDB()
def python.LumiDBHandler.LumiDBHandler.closeDB |
( |
|
self, |
|
|
|
dbstring |
|
) |
| |
Definition at line 95 of file LumiDBHandler.py.
95 def closeDB(self, dbstring):
98 print(
'LumiDBHandler.closeDB - Closing connection to', dbstring)
100 if dbstring
not in self.__class__.dbDict:
101 print(
"LumiDBHandler.closeDB - DB doesn't exist:", dbstring)
104 self.__class__.dbDict[dbstring].closeDatabase()
105 except Exception
as e:
107 self.__class__.dbDict.pop(dbstring)
◆ getFolder()
def python.LumiDBHandler.LumiDBHandler.getFolder |
( |
|
self, |
|
|
|
dbstring, |
|
|
|
folder, |
|
|
|
force = False |
|
) |
| |
Definition at line 47 of file LumiDBHandler.py.
47 def getFolder(self, dbstring, folder, force=False):
50 print(
'LumiDBHandler.getFolder(', dbstring,
',', folder,
') called')
52 if not self.openDB(dbstring, force=force):
53 print(
"LumiDBHandler.getFolder - can't connect to DB!")
56 return self.__class__.dbDict[dbstring].getFolder(folder)
◆ openDB()
def python.LumiDBHandler.LumiDBHandler.openDB |
( |
|
self, |
|
|
|
dbstring, |
|
|
|
oracle = False , |
|
|
|
debug = False , |
|
|
|
force = False |
|
) |
| |
Definition at line 60 of file LumiDBHandler.py.
60 def openDB(self, dbstring, oracle=False, debug=False, force=False):
63 print(
'LumiDBHandler.openDB(', dbstring,
') called')
66 if dbstring
in self.__class__.dbDict:
71 print(
'LumiDBHandler.openDB - Connection already exists')
76 print(
'LumiDBHandler.openDB - Connection already exists, closing first due to force=True')
77 self.closeDB(dbstring)
81 print((
'LumiDBHandler.openDB - Connecting to', dbstring))
85 except Exception
as e:
90 self.__class__.dbDict[dbstring] = db
◆ dbDict
python.LumiDBHandler.LumiDBHandler.dbDict = dict() |
|
static |
◆ verbose
python.LumiDBHandler.LumiDBHandler.verbose |
The documentation for this class was generated from the following file: