Skip to content

BackendDBProtocol

fastagency.studio.db.base.BackendDBProtocol #

Bases: Protocol

create_auth_token async #

create_auth_token(
    auth_token_uuid: Union[str, UUID],
    name: str,
    user_uuid: Union[str, UUID],
    deployment_uuid: Union[str, UUID],
    hashed_auth_token: str,
    expiry: str,
    expires_at: datetime,
) -> dict[str, Any]
Source code in fastagency/studio/db/base.py
async def create_auth_token(
    self,
    auth_token_uuid: Union[str, UUID],
    name: str,
    user_uuid: Union[str, UUID],
    deployment_uuid: Union[str, UUID],
    hashed_auth_token: str,
    expiry: str,
    expires_at: datetime,
) -> dict[str, Any]: ...

create_model async #

create_model(
    model_uuid: Union[str, UUID],
    user_uuid: Union[str, UUID],
    type_name: str,
    model_name: str,
    json_str: str,
) -> dict[str, Any]
Source code in fastagency/studio/db/base.py
async def create_model(
    self,
    model_uuid: Union[str, UUID],
    user_uuid: Union[str, UUID],
    type_name: str,
    model_name: str,
    json_str: str,
) -> dict[str, Any]: ...

delete_auth_token async #

delete_auth_token(
    auth_token_uuid: Union[str, UUID],
    deployment_uuid: Union[str, UUID],
    user_uuid: Union[str, UUID],
) -> dict[str, Any]
Source code in fastagency/studio/db/base.py
async def delete_auth_token(
    self,
    auth_token_uuid: Union[str, UUID],
    deployment_uuid: Union[str, UUID],
    user_uuid: Union[str, UUID],
) -> dict[str, Any]: ...

delete_model async #

delete_model(
    model_uuid: Union[str, UUID]
) -> dict[str, Any]
Source code in fastagency/studio/db/base.py
async def delete_model(self, model_uuid: Union[str, UUID]) -> dict[str, Any]: ...

find_many_auth_token async #

find_many_auth_token(
    user_uuid: Union[str, UUID],
    deployment_uuid: Union[str, UUID],
) -> list[dict[str, Any]]
Source code in fastagency/studio/db/base.py
async def find_many_auth_token(
    self, user_uuid: Union[str, UUID], deployment_uuid: Union[str, UUID]
) -> list[dict[str, Any]]: ...

find_many_model async #

find_many_model(
    user_uuid: Union[str, UUID],
    type_name: Optional[str] = None,
) -> list[dict[str, Any]]
Source code in fastagency/studio/db/base.py
async def find_many_model(
    self, user_uuid: Union[str, UUID], type_name: Optional[str] = None
) -> list[dict[str, Any]]: ...

find_model async #

find_model(model_uuid: Union[str, UUID]) -> dict[str, Any]
Source code in fastagency/studio/db/base.py
async def find_model(self, model_uuid: Union[str, UUID]) -> dict[str, Any]: ...

update_model async #

update_model(
    model_uuid: Union[str, UUID],
    user_uuid: Union[str, UUID],
    type_name: str,
    model_name: str,
    json_str: str,
) -> dict[str, Any]
Source code in fastagency/studio/db/base.py
async def update_model(
    self,
    model_uuid: Union[str, UUID],
    user_uuid: Union[str, UUID],
    type_name: str,
    model_name: str,
    json_str: str,
) -> dict[str, Any]: ...