mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 09:53:32 +01:00
28 lines
542 B
Python
28 lines
542 B
Python
|
|
# -*- 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
|