Skip to main content

Documentation Index

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

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

Tovuk app databases are SQLite databases owned by an app and attached to Rust workers as explicit resources.
npx tovuk sqlite create --app app_1 DB --json
npx tovuk platform --app app_1 --json
Agents should create databases before a deploy needs them, then keep schema migrations in source control.

Migration guidance

Recommended pattern:
  1. Keep migrations in a tracked migrations/ directory.
  2. Acquire one migration lock per app database.
  3. Apply pending migrations before serving traffic.
  4. Keep request handlers free of schema changes and long backfills.
Agents should reject database code that:
  • opens unbounded connections;
  • runs schema changes on every request;
  • stores secrets in source;
  • ignores migration errors;
  • performs long backfills during request handling.

Limits

Free plans follow Cloudflare-style SQLite limits: 10 app databases, 5 GiB total storage, 500 MiB per database, 5 million rows read per day, and 100 thousand rows written per day. Pro plans use larger monthly meters for predictable capacity. Inspect the exact current limits with:
npx tovuk usage --json
Last modified on May 30, 2026