[PR #3869] [MERGED] feat: support node:sqlite #13304

Closed
opened 2026-04-13 08:51:43 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3869
Author: @himself65
Created: 8/7/2025
Status: Merged
Merged: 8/20/2025
Merged by: @himself65

Base: canaryHead: himself65/2025/08/07/fix


📝 Commits (10+)

  • 00315e8 feat: support node:sqlite
  • 1674f9f Update sqlite.mdx
  • adc2259 Merge branch 'canary' into himself65/2025/08/07/fix
  • d415591 fix: lock
  • c169f80 Merge remote-tracking branch 'origin/himself65/2025/08/07/fix' into himself65/2025/08/07/fix
  • 2f0b7e7 docs: update
  • b2ea573 Merge branch 'canary' into himself65/2025/08/07/fix
  • 1118abd Merge branch 'canary' into himself65/2025/08/07/fix
  • bcfc0f0 Merge branch 'canary' into himself65/2025/08/07/fix
  • 3e99c75 Merge branch 'canary' into himself65/2025/08/07/fix

📊 Changes

9 files changed (+711 additions, -244 deletions)

View changed files

📝 demo/nextjs/package.json (+1 -1)
📝 docs/content/docs/adapters/sqlite.mdx (+39 -2)
📝 docs/package.json (+1 -1)
📝 package.json (+1 -1)
📝 packages/better-auth/src/adapters/kysely-adapter/dialect.ts (+26 -0)
📝 packages/better-auth/src/adapters/kysely-adapter/index.ts (+2 -0)
packages/better-auth/src/adapters/kysely-adapter/node-sqlite-dialect.ts (+299 -0)
packages/better-auth/src/adapters/kysely-adapter/test/normal/node-sqlite-dialect.test.ts (+237 -0)
📝 pnpm-lock.yaml (+105 -239)

📄 Description

I'm a Node.js SQLite WG member, so I'm happy to integrate this into better-auth. Even though it's not stable yet but it's okay to do sth like testing and small demo

Document: https://nodejs.org/docs/v22.18.0/api/sqlite.html#sqlite


Summary by cubic

Added support for the experimental Node.js built-in SQLite driver (node:sqlite) in Better Auth, allowing users to connect using DatabaseSync. Updated documentation and added tests for the new dialect.

  • New Features
  • Implemented a NodeSqliteDialect for Kysely to support node:sqlite.
  • Added integration tests to verify compatibility with Better Auth.
  • Updated docs to show usage examples for both better-sqlite3 and node:sqlite.

🔄 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/3869 **Author:** [@himself65](https://github.com/himself65) **Created:** 8/7/2025 **Status:** ✅ Merged **Merged:** 8/20/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/08/07/fix` --- ### 📝 Commits (10+) - [`00315e8`](https://github.com/better-auth/better-auth/commit/00315e87988967b9e0cf4e3655d820ad13101b0f) feat: support `node:sqlite` - [`1674f9f`](https://github.com/better-auth/better-auth/commit/1674f9fb17939f0c1f4e3240d7eb6934e552be38) Update sqlite.mdx - [`adc2259`](https://github.com/better-auth/better-auth/commit/adc2259486d3197981ddce2ce87ea554d6fa0d29) Merge branch 'canary' into himself65/2025/08/07/fix - [`d415591`](https://github.com/better-auth/better-auth/commit/d415591f478ec7facf0fd460613bb4595aecd251) fix: lock - [`c169f80`](https://github.com/better-auth/better-auth/commit/c169f80d24af6fef44304266bd8369c076053e16) Merge remote-tracking branch 'origin/himself65/2025/08/07/fix' into himself65/2025/08/07/fix - [`2f0b7e7`](https://github.com/better-auth/better-auth/commit/2f0b7e7eb4ffc74b33d155a85d03b2106ddfabd7) docs: update - [`b2ea573`](https://github.com/better-auth/better-auth/commit/b2ea573bd102770bab4f97252a3ca5d1f58bf8eb) Merge branch 'canary' into himself65/2025/08/07/fix - [`1118abd`](https://github.com/better-auth/better-auth/commit/1118abd847fc832879e4ab718ebe652085d8ed46) Merge branch 'canary' into himself65/2025/08/07/fix - [`bcfc0f0`](https://github.com/better-auth/better-auth/commit/bcfc0f0945b1ece074b0e6a53ad17eb5c4499c1e) Merge branch 'canary' into himself65/2025/08/07/fix - [`3e99c75`](https://github.com/better-auth/better-auth/commit/3e99c757dd5e36a8e1e6e90fc623f64b64d17139) Merge branch 'canary' into himself65/2025/08/07/fix ### 📊 Changes **9 files changed** (+711 additions, -244 deletions) <details> <summary>View changed files</summary> 📝 `demo/nextjs/package.json` (+1 -1) 📝 `docs/content/docs/adapters/sqlite.mdx` (+39 -2) 📝 `docs/package.json` (+1 -1) 📝 `package.json` (+1 -1) 📝 `packages/better-auth/src/adapters/kysely-adapter/dialect.ts` (+26 -0) 📝 `packages/better-auth/src/adapters/kysely-adapter/index.ts` (+2 -0) ➕ `packages/better-auth/src/adapters/kysely-adapter/node-sqlite-dialect.ts` (+299 -0) ➕ `packages/better-auth/src/adapters/kysely-adapter/test/normal/node-sqlite-dialect.test.ts` (+237 -0) 📝 `pnpm-lock.yaml` (+105 -239) </details> ### 📄 Description I'm a Node.js SQLite WG member, so I'm happy to integrate this into better-auth. Even though it's not stable yet but it's okay to do sth like testing and small demo Document: https://nodejs.org/docs/v22.18.0/api/sqlite.html#sqlite <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Added support for the experimental Node.js built-in SQLite driver (`node:sqlite`) in Better Auth, allowing users to connect using DatabaseSync. Updated documentation and added tests for the new dialect. - **New Features** - Implemented a NodeSqliteDialect for Kysely to support `node:sqlite`. - Added integration tests to verify compatibility with Better Auth. - Updated docs to show usage examples for both better-sqlite3 and node:sqlite. <!-- 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-04-13 08:51:43 -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#13304