-
Notifications
You must be signed in to change notification settings - Fork 201
Add 3.37 SQLite database driver #291
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
Conversation
Drupal 11 core requires SQLite 3.45, but Bullseye and Bookworm do not have that, so they need this alternative driver.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, I don't love this, but it seems ~sane.
Maybe we leave it open for a little bit in case there are some strong objections we should consider?
@effulgentsia apologies for the ping, but we'd really love/appreciate your opinion on our including your (of course, no hard feelings at all if that's not something you're interested in or willing to do! 🙇) |
Personally I think this solution isn't worth it, for a few reasons:
If we really want to support SQLite3 (until Trixie) is released, it's probably a lot easier to just backport the SQLite3 version from Trixie. That's what we did in the farmOS distribution. See: #264 (comment) All our SQLite3 tests are passing with that minor addition to our Just my 2 cents. :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The transition story is a really great point, and the primary thing that's convinced me to about-face on my opinion here -- if we leave installing https://www.drupal.org/project/sqlite337 up to users, then the transition story is also theirs to own (which is much saner/safer than us trying to automatically fix things for them somehow). 👍
I can tag a stable release of it. It's been at alpha for almost a year and no issues have been reported against it in all that time, though fair point that it's getting little usage so a lack of reported issues doesn't necessarily mean lack of latent problems.
It is indeed very simple. At this point in time, all it does is subclass Drupal core's SQLite driver and overrides the
I think this is the key judgment call for the maintainer(s) of this Docker image to make. Is it worth adding stuff to the image that people using the image with MySQL or PostgreSQL don't need? I don't know the answer to that.
If this is in fact easy, I'd agree that this is preferable. It would mean that whenever Drupal does start using jsonb functions in SQLite (or any other modern SQLite syntax), that these would work "properly" rather than polyfilled. |
Thank you all for the feedback. I agree that this might not be desired for all users and is an easy addition for those who need it. I would not advocate adding Trixie's library, but once Debian Trixie is released "soon", we'll definitely have an image based on it. |
Drupal 11 core requires SQLite 3.45, but Bullseye and Bookworm do not have that, so they need this alternative driver. The alternative SQLite database driver only requires SQLite 3.37. It can be chosen during the site setup wizard.
Note that the alternative adapter is version
1.0@alpha
and is provided by a Drupal developer (https://www.drupal.org/project/sqlite337). Being called an "alpha" release gives me pause, so please test that it works for your use cases (and maybe only use it for dev and not prod). It might not see updates, but we are definitely happy to bump the install line when there are.Fixes #264