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

sqlite: Enable passing options to Database.deserialize to enable strict mode #17726

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

ubirdio
Copy link

@ubirdio ubirdio commented Feb 26, 2025

What does this PR do?

Updates bun:sqlite Database.deserialize to take in an object of options similar to new Database() so strict mode can be enabled on a deserialized database.

  • Documentation or TypeScript types (it's okay to leave the rest blank in this case)
  • Code changes

How did you verify your code works?

I wrote automated tests

  • I included a test for the new code, or existing tests cover it
  • I ran my tests locally and they pass (bun-debug test test-file-name.test)

@ubirdio
Copy link
Author

ubirdio commented Feb 26, 2025

This fixes #17689

@ubirdio
Copy link
Author

ubirdio commented Feb 27, 2025

The failures seem to be unrelated to the changes in this PR. However, if there is something I should do to resolve them, let me know :)

@ubirdio
Copy link
Author

ubirdio commented Mar 9, 2025

(On phone using Github's "commit suggested changes" functionality. Unsure if it works well. Will double check later on desktop.)

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