Skip to content
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

SQLite VFS flag #2012

Closed
liningpan opened this issue Aug 1, 2022 · 4 comments
Closed

SQLite VFS flag #2012

liningpan opened this issue Aug 1, 2022 · 4 comments

Comments

@liningpan
Copy link
Contributor

liningpan commented Aug 1, 2022

I wonder if it is possible to expose the VFS connection option, which is the last parameter of sqlite3_open_v2.

let mut status = unsafe {
sqlite3_open_v2(self.filename.as_ptr(), &mut handle, self.open_flags, null())
};

A reasonable scope is to add support standard Unix and Windows VFSes. https://www.sqlite.org/vfs.html#multiple_vfses

@abonander
Copy link
Collaborator

You can set the VFS in the connection URL: https://www.sqlite.org/vfs.html#specifying_which_vfs_to_use

@liningpan
Copy link
Contributor Author

Yes, but last time I tried this sqlx says it does not recognize the vfs option.

@abonander
Copy link
Collaborator

Ah yeah, I forgot we re-synthesize the URI instead of passing it straight through.

We'd accept a PR for this.

@abonander
Copy link
Collaborator

Closed by #2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants