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§
- Shadow
Backend - A pluggable shadow Postgres backend.
- Shadow
Guard - 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.