diff --git a/content/200-concepts/100-components/database-drivers.mdx b/content/200-concepts/100-components/database-drivers.mdx index 7c5a3c6c22..7297c7eaec 100644 --- a/content/200-concepts/100-components/database-drivers.mdx +++ b/content/200-concepts/100-components/database-drivers.mdx @@ -17,19 +17,32 @@ Prisma Client can connect and run queries against your database using JavaScript Prisma will use the Query Engine to transform the Prisma Client query to SQL and run the generated SQL queries via the JavaScript database driver. -![Query flow from the user application to the database using Prisma Client and driver adapters](./images//drivers/qe-query-engine-adapter.png) +![Query flow from the user application to the database using Prisma Client and driver adapters](./images/drivers/qe-query-engine-adapter.png) -### Serverless driver adapters +There are 2 different types of driver adapters: -- [Neon](/guides/database/neon#how-to-use-the-neon-serverless-driver-with-prisma-preview) -- [PlanetScale](/guides/database/planetscale#how-to-use-the-planetscale-serverless-driver-with-prisma-preview) +- [Database driver adapters](#database-driver-adapters) +- [Serverless driver adapters](#serverless-driver-adapters) ### Database driver adapters +You can connect to your database using a Node.js-based driver from Prisma Client using a database driver adapter. Prisma maintains the following database driver adapters: + - [Turso](/guides/database/turso#connect-and-query-your-primary-database) +### Serverless driver adapters + +Database providers, such as Neon and PlanetScale, allow you to connect to your database using other protocols besides TCP, such as HTTP and WebSockets. These database drivers are optimized for connecting to your database in serverless and edge environments. + +Prisma maintains the following serverless driver adapters: + +- [Neon](/guides/database/neon#how-to-use-the-neon-serverless-driver-with-prisma-preview) +- [PlanetScale](/guides/database/planetscale#how-to-use-the-planetscale-serverless-driver-with-prisma-preview) + ## Community maintained database driver adapters +You can also build your own driver adapter for the database you're using. The following is a list of community maintained driver adapters: + - [TiDB](https://github.com/tidbcloud/prisma-adapter) ### How to use driver adapters