> ## Documentation Index
> Fetch the complete documentation index at: https://docs.formbase.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Database Configuration

> Use SQLite locally or Turso in production.

Formbase uses libSQL (SQLite-compatible) via Drizzle. You can run a local SQLite file in development or use Turso in production for a managed libSQL database.

<Steps>
  <Step title="Local SQLite (file)">
    ```ini theme={null}
    DATABASE_URL=file:./local.db
    ```

    This is the simplest local setup and works well for development.
  </Step>

  <Step title="Turso (libSQL)">
    ```ini theme={null}
    DATABASE_URL=libsql://your-db.turso.io
    TURSO_AUTH_TOKEN=your-token
    ```

    The auth token is required for all `libsql://` URLs.
  </Step>
</Steps>

<Callout type="note">
  Back up your SQLite file regularly, or use a managed libSQL provider for automated backups.
</Callout>
