added BusinessDAO

This commit is contained in:
2024-12-04 16:56:20 +01:00
parent 6e91637792
commit 50720596c6
11 changed files with 303 additions and 34668 deletions

15
lib/DB/BusinessDAO.py Normal file
View File

@@ -0,0 +1,15 @@
from .DbManager import DbManager
class BusinessDAO:
def __init__(self):
self.__con = DbManager().getConnection()
self.__cur = self.__con.cursor()
def getBusiness(self):
self.__cur.callproc("getCustomerView")
self.__all_cols = [desc[0] for desc in self.__cur.description]
return self.__cur.fetchall(), self.__all_cols
def addBusiness(self):
pass