We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Originally posted by NixBiks November 20, 2023 Does there exist a generated TypedDict which represents a table as they look in the database?
TypedDict
I've been looking in prisma.types but no luck.
prisma.types
E.g. for I'd like something like
from typing import Literal, Optional, TypedDict LogLevel = Literal["NOTSET", "DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"] class LogInDB(TypedDict): id: int level: LogLevel message: str worker_id: Optional[str]
for a schema like this
enum LogLevel { NOTSET DEBUG INFO WARNING ERROR CRITICAL } model Log { id BigInt @id @default(autoincrement()) level LogLevel message String worker_id String? }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Discussed in #838
Originally posted by NixBiks November 20, 2023
Does there exist a generated
TypedDict
which represents a table as they look in the database?I've been looking in
prisma.types
but no luck.E.g. for I'd like something like
for a schema like this
The text was updated successfully, but these errors were encountered: