Skip to main content

Module error

Module error 

Source

Enums§

Error

Functions§

contextualize_sqlx_error
Inspect a sqlx::Error and, if it carries a SQLSTATE we know how to explain, return a richer Error variant. Otherwise the input is wrapped in Error::Database unchanged so callers can keep using ?.
redact_url
Redact user:password@hostuser:****@host in a database URL so it can be embedded in error messages and logs without leaking credentials.

Type Aliases§

Result