Skip to main content

Module shadow

Module shadow 

Source
Expand description

Shadow Postgres backends.

ShadowBackend is the trait every backend implements. Two concrete backends ship in v0.2:

  • testcontainers: boots a fresh container via the testcontainers crate. Hermetic; requires Docker. Default when Docker is present.
  • dsn: connects to a user-supplied Postgres via a DSN. Useful for developers without Docker, for projects with extensions that need pre-installed binaries, and for managed-PG environments.

Modules§

dsn
DSN-backed shadow Postgres.
testcontainers
testcontainers-backed shadow Postgres.
validate
Cross-check the source IR against a live shadow Postgres.

Traits§

ShadowBackend
A pluggable shadow Postgres backend.
ShadowGuard
One reservation of a shadow Postgres. Drop returns it (or destroys it) per the backend’s reset policy.

Functions§

docker_available
Quick check: is Docker available on this host?
resolve
Resolve the configured backend from the [shadow] section.

Type Aliases§

PgMajor
PG major version requested.