AI Persistence/build Drizzle Adapter

Use when an app already runs Drizzle ORM and needs TanStack AI chat persistence — writes a chat-persistence.ts into the app against its existing db handle, schema file, and drizzle-kit journal. Covers the four tables (SQLite/Postgres/MySQL), the onConflict idempotency rules, JSON columns, and per-request bindings like D1.

TanStack ead5acb 20.9 KB Updated

File contents

tanstack/ai/tree/main/packages/ai-persistence/skills/ai-persistence/build-drizzle-adapter commit ead5acb2df

Frequently asked questions

npx skillmds@latest add tanstack/ai-persistence-build-drizzle-adapter