[PR #7517] [CLOSED] feat: add D1SqliteDialect #7370

Closed
opened 2026-03-13 13:33:41 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7517
Author: @bytaesu
Created: 1/21/2026
Status: Closed

Base: canaryHead: 2026-01-21/feat/d1-sqlite-dialect


📝 Commits (3)

  • b85e4d2 feat: add D1SqliteDialect
  • b4fa660 Merge branch 'canary' into 2026-01-21/feat/d1-sqlite-dialect
  • 048ec58 fix: lockfile

📊 Changes

4 files changed (+306 additions, -4 deletions)

View changed files

📝 packages/kysely-adapter/package.json (+6 -0)
packages/kysely-adapter/src/d1-sqlite-dialect.ts (+289 -0)
📝 packages/kysely-adapter/tsdown.config.ts (+5 -1)
📝 pnpm-lock.yaml (+6 -3)

📄 Description

Summary by cubic

Add a D1SqliteDialect to run Kysely on Cloudflare D1. Exposes a new package entry and build target for the D1 dialect.

  • New Features

    • D1SqliteDialect with driver, adapter, query compiler, and introspector.
    • Accepts a D1Database and optional onCreateConnection.
    • Supports returning and create-if-not-exists; no interactive transactions or streaming (use db.batch()).
    • Introspects tables via pragma_table_info and filters SQLite/D1/internal migration tables by default.
    • Uses ? placeholders, "quoted" identifiers, and autoincrement.
  • Dependencies

    • Added @cloudflare/workers-types dev dependency.
    • New export at ./d1-sqlite-dialect and included in tsdown build entries.

Written for commit 048ec58276. Summary will update on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/7517 **Author:** [@bytaesu](https://github.com/bytaesu) **Created:** 1/21/2026 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `2026-01-21/feat/d1-sqlite-dialect` --- ### 📝 Commits (3) - [`b85e4d2`](https://github.com/better-auth/better-auth/commit/b85e4d2b5c6f92beec76c79bffd8942f8761757b) feat: add D1SqliteDialect - [`b4fa660`](https://github.com/better-auth/better-auth/commit/b4fa6600176c8ef65bd8825555de8aef7c8f95e6) Merge branch 'canary' into 2026-01-21/feat/d1-sqlite-dialect - [`048ec58`](https://github.com/better-auth/better-auth/commit/048ec58276368a2809c0d996d4c236b82481e31a) fix: lockfile ### 📊 Changes **4 files changed** (+306 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `packages/kysely-adapter/package.json` (+6 -0) ➕ `packages/kysely-adapter/src/d1-sqlite-dialect.ts` (+289 -0) 📝 `packages/kysely-adapter/tsdown.config.ts` (+5 -1) 📝 `pnpm-lock.yaml` (+6 -3) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Add a D1SqliteDialect to run Kysely on Cloudflare D1. Exposes a new package entry and build target for the D1 dialect. - New Features - D1SqliteDialect with driver, adapter, query compiler, and introspector. - Accepts a D1Database and optional onCreateConnection. - Supports returning and create-if-not-exists; no interactive transactions or streaming (use db.batch()). - Introspects tables via pragma_table_info and filters SQLite/D1/internal migration tables by default. - Uses ? placeholders, "quoted" identifiers, and autoincrement. - Dependencies - Added @cloudflare/workers-types dev dependency. - New export at ./d1-sqlite-dialect and included in tsdown build entries. <sup>Written for commit 048ec58276368a2809c0d996d4c236b82481e31a. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 13:33:41 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#7370