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 to DatabaseSync#options which causes SQLITE_OPEN_URI to be passed to sqlite3_open_v2().
What alternatives have you considered?
- Always pass
SQLITE_OPEN_URI to sqlite3_open_v2() like go-sqlite3 or the rust bindings rusqlite do. Note that specifying SQLITE_OPEN_URI does not require location to be an URI.
- Allow passing arbitrary open flags.
node-sqlite3 chose this path.
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
allowLocationUriboolean property toDatabaseSync#optionswhich causesSQLITE_OPEN_URIto be passed tosqlite3_open_v2().What alternatives have you considered?
SQLITE_OPEN_URItosqlite3_open_v2()likego-sqlite3or the rust bindingsrusqlitedo. Note that specifyingSQLITE_OPEN_URIdoes not requirelocationto be an URI.node-sqlite3chose this path.