Skip to main content

Module errors

Module errors 

Source
Expand description

Error types for the client module.

Two top-level enums cover different failure modes:

  • ConnectionError — Transport and query failures: connection refused, SQL errors, missing dependencies, configuration problems, and DDL failures.
  • DatabaseValidationError — Semantic mismatches detected during pre-deployment validation (e.g., schema conflicts, unexpected objects).

Structs§

MissingSourceReference
One table whose reference its source does not expose.
SourceReferenceMismatch
One source whose exposed references do not cover everything the project’s tables ask of it.

Enums§

ConnectionError
Errors that can occur during database operations.
DatabaseValidationError
Errors that can occur during project validation against the database.

Functions§

format_query_error 🔒
format_relative_path
Extract last 3 path components for display (database/schema/file.sql).