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

Show how to get URI parameters in a VFS #124

Closed
rogerbinns opened this issue Dec 29, 2013 · 3 comments
Closed

Show how to get URI parameters in a VFS #124

rogerbinns opened this issue Dec 29, 2013 · 3 comments

Comments

@rogerbinns
Copy link
Owner

From rogerbinns on October 24, 2011 09:47:46

It is easy to pass parameters using URI filename mechanism but it isn't obvious how to receive those parameters in a custom VFS. Document how to do so.

Original issue: http://code.google.com/p/apsw/issues/detail?id=124

@ghost ghost assigned rogerbinns Dec 29, 2013
@rogerbinns
Copy link
Owner Author

From rogerbinns on November 05, 2011 11:10:28

With the current APSW implementation it is impossible to get the URI information. The way it is provided inside SQLite is rather hacky (overloads a char pointer) which makes it even harder to add into APSW without breaking existing code so I'm going to see what I can do for the next release cycle.

@rogerbinns
Copy link
Owner Author

From rogerbinns on November 05, 2011 11:32:05

Proposed design:

Create a URIOptions type. It wraps the incoming char* passed to xOpen and implements sqlite3_uri_parameter(). It is passed to xOpen upcalls (backwards incompatible change). Calls to xOpen can provide either a filename or an URIOptions instance.

@rogerbinns
Copy link
Owner Author

From rogerbinns on January 28, 2012 21:56:51

This issue was closed by revision d69541202b6b .

Status: Fixed

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

No branches or pull requests

1 participant