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

Support VFS when opening a db #876

Closed
guenhter opened this issue Nov 13, 2020 · 1 comment · Fixed by #877
Closed

Support VFS when opening a db #876

guenhter opened this issue Nov 13, 2020 · 1 comment · Fixed by #877

Comments

@guenhter
Copy link

guenhter commented Nov 13, 2020

Hi,

is there a reason why it is currently not supported to define a VFS via the connection string when opening a DB?

I guess everything is prepared for it but the zVfs parameter is just not use and always set to nil

nil)

Would you mind to add the vfs to the connection uri parameters, so that e.g. this can be done:

db, err := sql.Open("sqlite3", "test.db?cache=shared&mode=rwc&vfs=unix-dotfile")

(I guess as a start, it is good enough only supporting the build-in-VFS'; registering new VFS' can be added if needed later)

mattn added a commit that referenced this issue Nov 13, 2020
@mattn
Copy link
Owner

mattn commented Nov 13, 2020

Could you please try #877 ?

mattn added a commit that referenced this issue Nov 16, 2020
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

Successfully merging a pull request may close this issue.

2 participants