Skip to content

sqlite Windows path to DB file #401

Answered by wangxiaoying
wKollendorf asked this question in Q&A
Discussion options

You must be logged in to vote

Have you tried to urlencode the path? Like this:

import urllib

path = urllib.parse.quote("C:\\Users\\somepath\\test.sqlite")
df = cx.read_sql(f"sqlite://{path}", query)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@wKollendorf
Comment options

Answer selected by wKollendorf
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants