-
Notifications
You must be signed in to change notification settings - Fork 409
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
Convert SQLite directory to URI #2922
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2922 +/- ##
==========================================
+ Coverage 63.99% 64.04% +0.05%
==========================================
Files 451 451
Lines 24074 24108 +34
==========================================
+ Hits 15407 15441 +34
+ Misses 7707 7705 -2
- Partials 960 962 +2
Flags with carried forward coverage won't be shown. Click here to find out more. |
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.
Looks good, just some tiny comments
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.
Looks good, let's update unit test to pass.
…FerretDB into issue-2753-sqlite-uri
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.
Looks good to me!
if err != nil { | ||
return nil, lazyerrors.Error(err) | ||
} | ||
|
||
p := &Pool{ | ||
dir: dir, | ||
dir: uri.Path, |
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.
🛑 And after that, we lose query parameters that we should pass to openDB
below, as well in GetOrCreate
via databasePath
and maybe somewhere else
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.
Saved uri
instead of dir
.
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.
That does not change the fact that openDB accepts matched files (without query parameters) in one place and the database path (also without query parameters) in another.
Description
Closes #2753.
Readiness checklist
task all
, and it passed.@FerretDB/core
), Labels, Project and project's Sprint fields.