db: Add DataBase.py

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2025-02-02 15:58:52 +01:00
commit 2b061a6dc4

View file

@ -0,0 +1,28 @@
# -*- coding: utf-8 -*-
from typing import Any
import abc
from jwutils.Config import Config
from jwutils.db.schema.Schema import Schema
from jwutils import Cmds
class DataBase(abc.ABC):
def __init__(self, schema: Schema, conf: Config, app: Any) -> None:
self.__conf = conf
self.__app = app
self.__schema = schema
@property
def app(self) -> Cmds:
return self.__app
@property
def schema(self):
return self.__schema
@property
def conf(self):
return self.__conf