Hi Sven, I'll take that into account. I did not think about using an empty host/port pair, maybe because of the extra slash.
Also, I do not need to convert the file name to a file reference. That is done in sqlite by the sqlite library itself, so it's less work for the driver. The only need I need to do is:
��- for nbsqlite get the file name
��- for opendbx get the full file name and split into directory��+ file name because they are two different arguments for the library.
Now, having a look at what we can do with znurl
In windows it looks that we are ok
'sqlite3:///c:/myDirectory/myfile.db' asUrl path.
�� �� ��"'c:/myDirectory/myfile.db'"
'sqlite3:///c:\myDirectory\myfile.db' asUrl path.
�� ������"'c:\myDirectory\myfile.db'"
But in linux even if I put extra slashes it keeps removing them... And it makes difficult to recognize relative from absolute file paths:
"Relative path��c/myDirectory/myfile.db OK"
'sqlite3:///c/myDirectory/myfile.db' asUrl path.
�� ������"'c/myDirectory/myfile.db'"
"Absolute path /c/myDirectory/myfile.db not OK"
'sqlite3:///c/myDirectory/myfile.db' asUrl path.
�� ������"'c/myDirectory/myfile.db'"
Adding Slashes
'sqlite3:////////c/myDirectory/myfile.db' asUrl path.
�� ������"'c/myDirectory/myfile.db'"
Another concern is that garage as it is works in Pharo 3, 4 and 5. Then if we update Zn I'll have to add Zn to my dependencies and load the correct version accordingly, what do you think? (I prefer that to backporting)
Guille��