Why better-sqlite3 cannot use relative path to create db? #1080
Answered
by
Prinzhorn
liaodalin19903
asked this question in
Q&A
-
When I use the relative path to create db it will get error:
the error:
if I use code like this:
it will works fine. |
Beta Was this translation helpful? Give feedback.
Answered by
Prinzhorn
Oct 9, 2023
Replies: 1 comment 2 replies
-
I don't think the relative path is the issue, does a |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
mceachen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't think the relative path is the issue, does a
db
folder exist? Doesnew Database('./sample2.db');
(relative path) work?