我正在尝试连接到 windows 7 x64 机器上的 python 3.3 应用程序中的 sqlite-database 文件。为此,文档指出:
# sqlite://<nohostname>/<path>
# where <path> is relative:
engine = create_engine('sqlite:///foo.db')
# or absolute, starting with a slash:
engine = create_engine('sqlite:////absolute/path/to/foo.db')
我想使用绝对路径,windows-equivalent to 是sqlite:////absolute/path/to/foo.db
什么?数据库存储在C:/Users/Username/AppData/Roaming/Appname/mydatabase.db
.
任何帮助表示赞赏!