ORMs
Prisma + Turso
Configure Prisma to work with your Turso database
Prerequisites
Before you start, make sure you:
- Install the Turso CLI
- Sign up or login to Turso
- Prisma versions 5.4.2 and later
1
Install the libSQL SDK and its Prisma driver
2
Retrieve database credentials
Get the database URL:
Get the database authentication token:
Assign credentials to the environment variables inside .env
.
3
Enable the `driverAdapters` preview feature flag:
prisma/schema.prisma
4
Generate Prisma client
5
Update your Prisma Client Instance
6
Query