-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
node:sqlite support SQLITE_OPEN_URI
#57068
Comments
I think it makes sense to always pass |
Would be totally fine by me. I proposed the conservative option mainly because I don't know how much you care about the overlap between URIs and valid filepaths on Linux and BSDs, e.g. |
Great! I took the opportunity to do this flag as default in that PR. It's ready for review |
Maybe it's worth to consider the fourth option: Pass |
What is the problem this feature will solve?
I have a custom SQLite VFS implementation and I want to open a database within the VFS. SQLite allows me to specify the VFS implementation as a query parameter for URI filenames.
What is the feature you are proposing to solve the problem?
Add an
allowLocationUri
boolean property toDatabaseSync#options
which causesSQLITE_OPEN_URI
to be passed tosqlite3_open_v2()
.What alternatives have you considered?
SQLITE_OPEN_URI
tosqlite3_open_v2()
likego-sqlite3
or the rust bindingsrusqlite
do. Note that specifyingSQLITE_OPEN_URI
does not requirelocation
to be an URI.node-sqlite3
chose this path.The text was updated successfully, but these errors were encountered: