Database
We use Drizzle ORM for connecting to multiple databases. Drizzle is lightweight, typesafe and works really fast on all kinds of runtimes.
Supersaas comes with two database services, Turso and Cloudflare D1 with NuxtHub, but can be easily extended to support other databases like Postgres and Mysql.
Drizzle ORM
Use Drizzle ORM to connect and query your database.
Turso
A fast SQLite database with generous free tier.
Cloudflare D1
Use Cloudflare D1 with NuxtHub.
Neon DB
Use Postgres with Neon DB, a powerful Postgres database service.
Planetscale
The popular Mysql database service.
The useDB() composable
Supersaas has a useDB() composable that works universally on all server files within the project using Nuxt's powerful auto import feature.
If a database provider is changed, the useDB() composable will automatically use the new database provider.