serverless-js
A fetch API-compatible driver to connect TiDB Serverless from serverless/edge functions
Professional software vendor delivering innovative solutions on the Softono platform. Specialized in both open-source and proprietary software development.
A fetch API-compatible driver to connect TiDB Serverless from serverless/edge functions
The prisma-adapter package is a Prisma driver adapter that connects Prisma Client to TiDB Cloud using the TiDB Cloud Serverless Driver. It enables applications to interact with TiDB Cloud Serverless through Prisma's familiar client API, supporting operations like inserts, finds, and updates via standard Prisma queries. The adapter also supports batched transactions with configurable isolation levels, such as READ COMMITTED. Installation requires the prisma-adapter package along with the serverless driver and a Node 18+ environment. Configuration involves setting a DATABASEURL in MySQL format and defining models in a Prisma schema. Note that Prisma migration and introspection still use traditional TCP connections; only Prisma Client operations use the adapter. Multiple adapter versions are available, each mapped to compatible Prisma and serverless driver versions, ensuring flexibility for various project setups.