Databases
Connect a database from server functions and loaders, with examples for Drizzle on libSQL and Turso, for Supabase, and a Prisma setup.
Open database connections in server-only modules and call them from server functions, API routes or server-side loaders. Keep connection strings off the client. The examples cover Drizzle, Turso, Supabase and Prisma.
Start with Use a database.