[sqlite] Escape pathname to URL suitable for ATTACH

2015-09-10 Thread Clemens Ladisch
Zsb?n Ambrus wrote: > 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? No. > It's also not clear to me how to quote filenames on unix if they > contain non-ascii

[sqlite] Escape pathname to URL suitable for ATTACH

2015-09-10 Thread Zsbán Ambrus
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 e