PrismaBackendDB
fastagency.studio.db.prisma.PrismaBackendDB #
Bases: BackendDBProtocol, PrismaBaseDB
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/prisma.py
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/prisma.py
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/prisma.py
delete_model async #
Source code in fastagency/studio/db/prisma.py
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/prisma.py
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/prisma.py
find_model async #
Source code in fastagency/studio/db/prisma.py
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]