Source code for peek_plugin_base.server.PeekServerPlatformHookABC
from abc import abstractmethod
from typing import Dict
from typing import Optional
from typing import Union
from peek_plugin_base.PeekPlatformCommonHookABC import PeekPlatformCommonHookABC
from peek_plugin_base.PeekPlatformFileStorageHookABC import (
PeekPlatformFileStorageHookABC,
)
from peek_plugin_base.server.PeekPlatformAdminHttpHookABC import (
PeekPlatformAdminHttpHookABC,
)
from peek_plugin_base.server.PeekPlatformServerHttpHookABC import (
PeekPlatformServerHttpHookABC,
)
[docs]class PeekServerPlatformHookABC(
PeekPlatformCommonHookABC,
PeekPlatformAdminHttpHookABC,
PeekPlatformServerHttpHookABC,
PeekPlatformFileStorageHookABC,
):
@property
@abstractmethod
def dbConnectString(self) -> str:
"""DB Connect String
:return: The SQLAlchemy database engine connection string/url.
"""
@property
@abstractmethod
def dbEngineArgs(self) -> Optional[Dict[str, Union[str, int]]]:
"""DB Engine Args
:return: The SQLAlchemy database engine arguments.
"""