tidbx-serverless-driver

Guide TiDB Cloud serverless driver connections from edge runtimes.

24|14|Updated Feb 23, 2023
One-click install
npx skills add https://github.com/pingcap/agent-rules --skill tidbx-serverless-driver
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tidbx-serverless-driver
Source: https://github.com/pingcap/agent-rules/tree/main/skills/tidbx-serverless-driver
Command: npx skills add https://github.com/pingcap/agent-rules --skill tidbx-serverless-driver

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill guides developers using the TiDB Cloud serverless driver (Beta) to connect from serverless/edge runtimes and integrate with serverless adapters (Prisma/Kysely/Drizzle) across environments like Vercel, Cloudflare, Netlify, Deno, and Bun.

Core Features & Use Cases

  • HTTP-based driver guidance: Use the TiDB Cloud serverless driver where TCP is impractical.
  • Edge-friendly patterns: Guidance for edge runtimes and browser-backed services (where allowed).
  • Use Case: Replace a TCP-based workflow with HTTP-based driver to enable serverless deployments without connection pooling.

Quick Start

Install the serverless driver and copy a minimal example of connecting to TiDB Cloud using the serverless URL, then execute a simple query.