Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.zerct.com/llms.txt

Use this file to discover all available pages before exploring further.

Managed Postgres is attached to Rust backends.
npx @zerct/zerct deploy --database
The runtime receives:
DATABASE_URL
ZERCT_DATABASE_URL
ZERCT_DATABASE_CONNECTION_LIMIT
ZERCT_POSTGRES_POOL_MODE
Use the connection limit as the maximum app pool size. Do not open a new database connection for every request.

Migrations

Run migrations from the Rust backend startup path or a bounded deploy command. Keep migrations idempotent and fast. Recommended pattern:
  1. Connect through DATABASE_URL.
  2. Acquire one migration lock.
  3. Apply pending migrations from a tracked migrations/ directory.
  4. Start the HTTP server only after migrations finish.
Agents should reject migration code that:
  • opens unbounded connections;
  • runs schema changes on every request;
  • stores secrets in source;
  • ignores migration errors;
  • performs long backfills during request handling.
For large data changes, deploy the schema first, then run bounded background work from a separate admin command.
Last modified on May 26, 2026