Skip to content

Conversation

@tylergannon
Copy link
Contributor

Summary

This PR applies upstream PR #58 which adds native Bun SQL and SQLite drivers.

Upstream Reference

Upstream PR: sqlc-dev/sqlc-gen-typescript#58
Status: Open (not yet merged upstream)
Author: @davisriedel

Changes

  • Adds bun-sql driver for native Bun PostgreSQL support (Bun 1.2+)
  • Adds bun-sqlite driver for native Bun SQLite support
  • Zero external npm dependencies when using native Bun drivers
  • Complete examples in examples/bun-sql/ and examples/bun-sqlite/

Why Apply Now

  • Native Bun SQL provides better performance than compatibility layers
  • No need to install pg or postgres npm packages
  • Future-proof as Bun improves their SQL implementation
  • Upstream repo has been slow to merge PRs (last merge was Nov 2024)

Rebasing Strategy

When upstream merges PR #58:

  1. Fetch upstream: git fetch upstream
  2. This commit can be dropped when rebasing: git rebase -i upstream/main
  3. The commit message references the upstream PR for easy identification

This adds native Bun SQL support using Bun's built-in PostgreSQL API (since Bun 1.2).
No external npm dependencies required for PostgreSQL when using bun-sql driver.

Upstream PR: sqlc-dev/sqlc-gen-typescript#58
Author: davisriedel
@tylergannon tylergannon merged commit 827055e into main Dec 17, 2025
7 checks passed
@tylergannon tylergannon deleted the upstream-sync branch December 17, 2025 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants