Skip to content

Proposal: Enable the JSON extension by default #1044

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

Closed
ganigeorgiev opened this issue May 13, 2022 · 1 comment
Closed

Proposal: Enable the JSON extension by default #1044

ganigeorgiev opened this issue May 13, 2022 · 1 comment

Comments

@ganigeorgiev
Copy link

This is not an issue, but a proposal to have the json extension loaded by default into the driver.

I'm currently developing a framework/library that requires the go-sqlite3 with the json extension loaded, and while you could build it with -tags json1, this also requires the consumers of my library to pass the same build tags when building their project which results in a poor dev experience.

This topic was brought several times in the past (ex. #710, #832 and golang/go#43288) and since the json extension is frequently used, I want to suggest enabling it by default. As Russ Cox mentioned in the related go issue, I don't think this will increase the size significantly and will result in better out-of-the-box dev experience when using the driver.

@ganigeorgiev
Copy link
Author

ganigeorgiev commented May 13, 2022

Actually, after reading the release notes of SQLite 3.38.0, it seems that the JSON functions are already built-ins and the SQLITE_ENABLE_JSON1 option is a no-op.

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

No branches or pull requests

1 participant