I\'m trying to connect to a sqlite-database file in a python 3.3 application on a windows 7 x64 machine. To do so, the documentation states:
# sqlite://
On Windows it's a bit tricky, because you have to escape the backslashes:
sqlite:///C:\\path\\to\\database.db
Also, as Windows doesn't have the concept of root
and instead uses drives, you have to specify absolute path with 3 slashes:
sqlite:///C:\\Users\\Username\\AppData\\Roaming\\Appname\\mydatabase.db