Skip to main content

Module error

Module error 

Source
Expand description

Typed errors for fallible compilation (QueryBuilder::try_to_sql).

Every fail-loud guard in the compiler maps to one BuildError variant. QueryBuilder::to_sql panics with exactly the Display message of the corresponding variant, so the panicking and fallible paths stay in sync.

Enumsยง

BuildError
Invalid query construction, detected when compiling a QueryBuilder.
Error
Unified error for the execution helpers (fetch_*, execute, count): the query either failed to build (invalid construction, see BuildError) or failed to execute (database/driver error from sqlx).