How to use sqlite in my next.js with electron template project? #55930
Unanswered
liaodalin19903
asked this question in
Help
Replies: 1 comment
-
Is anyone working on this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
When I create SQLite db file in my
electron-src/
directory, it does not sync tomain/
directory in my next.js with electron projectI use next.js with electron template created a project,
the directory structure as below:
I found the
main/
is generated byelectron-src/
, and in the actual running process, the main process what goes into effect ismain/
rather thanelectron-src/
.but now I want to use sqlite as data persistence database in my project, when I create
db/proj.sqlite.db
, it do not sync to themain/
directory, whether means I cannot use sqlite as the way?and when I use the better-sqlite3 code to access sqlite db:
it will get error:
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions