## Turso Database

The generated project uses the remote HTTP driver `@tursodatabase/serverless` with `drizzle-orm/tursodatabase-serverless`. Tables use `drizzle-orm/sqlite-core`.

- Use the Turso Cloud `turso://` URL and its auth token. Embedded `file:` databases need a different driver.
- Keep the pinned Drizzle ORM and Kit versions together; this integration uses Drizzle v1.
- Reuse `getDb()`. This driver uses `fetch` and has no Postgres connection pool.
- Keep `@libsql/client` out of this provider; Drizzle Kit can otherwise select the legacy driver.

Drizzle Kit converts the Cloud URL to HTTPS for its bundled SDK. Your application can keep the original Turso URL.

Learn more in the [Drizzle Turso guide](https://orm.drizzle.team/docs/sqlite/connect-turso-serverless) and [Turso SDK reference](https://docs.turso.tech/sdk/ts/reference).


