Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Bun Sqlite JSONb parsing #2355

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

zackify
Copy link

@zackify zackify commented May 20, 2024

I am not sure if this is the correct place to have this fix.

Better-sqlite3 adapter returns a "Buffer" for jsonb fields in the all function.

Bun sqlite is returning an U8IntArray.

This breaks json parsing in drizzle when querying for jsonb records.

The fix I did, just converts the u8intarrays to buffers which drizzle is expecting, now I can query and return json with bun correctly.

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.

1 participant