Hello, sqlite3 mailing list. The ATTACH command and the sqlite3_open function can take an URI instead of a plain filename, if sqlite3 is so configured. This is documented at "http://sqlite.org/uri.html". This is useful, because it lets you specify extra options for attaching that you couldn't easily set otherwise.
The documentation explains how to quote a filename to be suitable as an URI path. Is there a C function in the public API that I can call to do this quoting for me automatically? If so, what is it or where is it documented? This would be useful for using URI filenames. It's also not clear to me how to quote filenames on unix if they contain non-ascii bytes. The description of URI filenames at the documentation page of the sqlite3_open function at "http://sqlite.org/c3ref/open.html" says that the filename has to be UTF-8 encoded before it is URI-escaped, which makes sense on a Windows system, but not very meaningful on a unix system where the filenames are strings of bytes. -- Ambrus