Announcing New Prisma, Hasura & Cloudflare Integrations with Turso

Turso announces more ways to use Turso with your favorite tools and platforms

--

Nobody uses a database in isolation. That’s true if you have one database, or five hundred. Databases are part of stacks, and we use them to achieve goals.

That’s why making it easier to integrate Turso into your favorite tools and platforms is and will continue to be a priority for us. Today we are excited to announce three more tools and platforms with upcoming integrations with Turso.

Prisma

Prisma is the most widely used ORM for TypeScript. Ever since we released Turso to the public, we always get asked the same question: “does it work with Prisma?”. We are happy to say that the answer is now, yes.

Prisma has been around for a long time, and their architecture has been evolving rapidly to support Edge environments. And while SQLite is already supported in Prisma, Turso is more complex, since it provides SQLite over HTTP for Edge environments.

The connector will be available officially in the beginning of October, but is already present in Prisma’s Open Source repository. Here’s a sneak peek into how it would work:

import { PrismaClient } from '@prisma/client'
import { createClient } from '@libsql/client'
import { PrismaLibSQL } from '@prisma/adapter-libsql'

const connectionString = process.env.TURSO_DATABASE_URL
const authToken = process.env.TURSO_AUTH_TOKEN
const client = createClient({ url: connectionString, authToken })
const adapter = new PrismaLibSQL(client)
const prisma = new PrismaClient({ adapter })

To get started with Turso and Prisma, check out the details on Prisma’s blog post at prisma.io/turso, and follow Prisma on X

Cloudflare Workers

Cloudflare Workers is a globally available platform that allows users to execute code at the Edge. Users can now deploy Turso databases directly from Cloudflare, and have all their secrets and connection strings directly inserted into their workers.

To get started, select an existing worker in your Cloudflare dashboard and go to Settings > Integrations, where you will see the Turso integration card. Then follow the steps provided by Cloudflare to set up your Turso database!

Hasura

If you love Hasura, we bet you are not alone!

Hasura is a platform that allows the streamlined creation of Data APIs from any data source. Data owners can leverage Hasura to instantly build & deploy production-ready web-scale APIs to give developers access to their domain data, instead of having to develop & operate a microservice.

With Turso, Hasura brings its API solution to the Edge. The official connector is still in development, and will be available in October.

For more information, follow Hasura on X

You could be next!

If you are interested in integrating with Turso and featuring on this list next, we’d love to talk. We believe integrations massively increase developer productivity, a goal we always keep in mind.

Feel free to reach out to glauber@turso.tech, and let’s get our integrations started!

--

--