Expand description
Database provisioning for tests.
Provides PostgreSQL access for integration tests. Database configuration options:
- Pass a URL directly via
from_url() - Use
from_env()to explicitly read from TEST_DATABASE_URL - Use
embedded()for automatic embedded PostgreSQL (requiresembedded-dbfeature)
This design prevents accidental use of production databases. The .env file DATABASE_URL is NEVER automatically read.
Structsยง
- Isolated
Test Db - A test database that exists for the lifetime of a single test.
- Test
Database - Database access for tests.