Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Backport the SQLite rewrite from the standalone plugin #677
Backport the SQLite rewrite from the standalone plugin #677
Changes from 16 commits
590a89a
93ae4dc
64df26d
1bc9ee0
26f72ab
073ef34
8ad6a79
4652949
68ec7a1
5cfa86d
8948766
6489f32
ac0dad1
d7e7538
35abe35
560f4df
710eddf
8dc116f
5e6d474
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
See my other comment, we also need to ensure backward compatibility the other direction, especially as I'm assuming
SQLITE_DB_DROPIN_VERSION
will be our main constant going forward.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.
Based on the code above in line 10-12, we would need to use
PERFLAB_SQLITE_DB_DROPIN_VERSION
instead, as above you set that constant based on the other one. Which one is considered the source of truth? Given the standalone plugin usesSQLITE_DB_DROPIN_VERSION
, we should probably use that.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.
Why remove the doc block here? Not having a doc block is worse than having one :)
Additionally, we should be careful about prefixing our code properly.
sqlite_plugin_
works well as a prefix, since that makes it very clear it's for the plugin and won't conflict when that code is eventually part of WordPress core. But we shouldn't use justsqlite_
orwp_sqlite_
, because those are at risk for conflicts.