dstddb icon indicating copy to clipboard operation
dstddb copied to clipboard

Can't create SQLLite DB with absolute path

Open bubnenkoff opened this issue 8 years ago • 2 comments

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:/// ?

bubnenkoff avatar Apr 06 '16 10:04 bubnenkoff

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.

cruisercoder avatar Apr 20 '16 04:04 cruisercoder

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

bubnenkoff avatar Apr 20 '16 05:04 bubnenkoff