Expand description
Typed errors and HTTP mapping.
Structs§
Enums§
Functions§
- db_
error_ field - Extract the column name from a PostgreSQL error.
Extract a field name from a database constraint violation error, where available.
On Postgres, this parses the
detailfield ofPgDatabaseError(e.g. “Key (email)=… already exists”). On other dialects the function returnsNone— callers fall back to generic messages. - db_
error_ message - Build a human-readable message for a DB error, using the extracted field name when available.