cruisercoder / dstddb

A proposed standard database interface and library for D
MIT License
28 stars 10 forks source link

Can't create SQLLite DB with absolute path #6

Open bubnenkoff opened 8 years ago

bubnenkoff commented 8 years ago

createDatabase("file:///C://code//sqlLiteDBFullName.db").query("CREATE TABLE IF NOT EXISTS ddbct1 (ts text)");

Running .\dbsync.exe sqlite opening file: C://code//sqlLiteDBFullName.db 2016-04-06T13:32:04.449:C:\Users\bubenkov_di\AppData\Roaming\dub\packages\dstddb -0.0.3\dstddb\src\std\database\sqlite\database.d:query:268 sqlite3_step: status: 101

And no result on C://code// folder.

Also why do I need to write 3 slashes? like: file:/// ?

cruisercoder commented 8 years ago

See other threads for an explanation on the query. As far as the slashes: the first two are delimiters for the URI syntax. The third would indicate the start of an absolute path. I'm not entirely sure what the path should be for a windows path yet.

bubnenkoff commented 8 years ago

Windows also support / Afaik it work same as \

среда, 20 апреля 2016 г. пользователь Erik Smith написал:

See other threads for an explanation on the query. As far as the slashes: the first two are delimiters for the URI syntax. The third would indicate the start of an absolute path. I'm not entirely sure what the path should be for a windows path yet.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/cruisercoder/dstddb/issues/6#issuecomment-212250888