19 lines
469 B
Python
19 lines
469 B
Python
from .DbManager import DbManager
|
|
|
|
|
|
class BTypeDAO:
|
|
__cur = None
|
|
def __init__(self):
|
|
#print(f"*** File: {__file__}, init()")
|
|
self.__con = DbManager().getConnection()
|
|
if self.__con:
|
|
self.__cur = self.__con.cursor()
|
|
|
|
def getBType(self):
|
|
if self.__cur:
|
|
self.__cur.callproc("getBtype", (None, None, ))
|
|
data = self.__cur.fetchall()
|
|
return(data)
|
|
else:
|
|
return None
|