orm library

Functions

dateTimeToJson(dynamic value) → dynamic
Date time toJson serializer.
languageKeywordDecode(String name) String
Dart language keyword decode
languageKeywordEncode(String name) String
Dart language keyword encode

Typedefs

PrismaLogHandler = void Function(Exception exception)
PrismaNullable<T> = T?
PrismaTransactionCallback<T> = FutureOr<T> Function(PrismaClient transaction)
Prisma transaction function.

Exceptions / Errors

PrismaClientInitializationError
Prisma Client throws a PrismaClientInitializationError exception if something goes wrong when the query engine is started and the connection to the database is created. This happens either:
PrismaClientKnownRequestError
Prisma Client throws a PrismaClientKnownRequestError exception if the query engine returns a known error related to the request - for example, a unique constraint violation. See https://www.prisma.io/docs/reference/api-reference/error-reference#prismaclientknownrequesterror
PrismaClientRustPanicError
Prisma Client throws a PrismaClientRustPanicError exception if the underlying engine crashes and exits with a non-zero exit code. In this case, the Prisma Client or the whole Node process must be restarted. See https://www.prisma.io/docs/reference/api-reference/error-reference#prismaclientrustpanicerror
PrismaClientUnknownRequestError
Prisma Client throws a PrismaClientUnknownRequestError exception if the query engine returns an error related to a request that does not have an error code. See https://www.prisma.io/docs/reference/api-reference/error-reference#prismaclientunknownrequesterror
PrismaClientValidationError
Prisma Client throws a PrismaClientValidationError exception if validation fails. See https://www.prisma.io/docs/reference/api-reference/error-reference#prismaclientvalidationerror
PrismaEvent
PrismaLogEvent
Log PrismaEvent
PrismaQueryEvent
Query log PrismaEvent