Can I use drizzle for Electronjs app?
Hi guys, I am just wondering, can I use drizzle for electron app?
I am using electron/react/typescript/vite combo with local db (better-sqlite3). Can I just add drizzle? I can't find any documentation about this topic. Did someone try it and what was the outcome?
Thanks for any helpful information and tips 🙂
3 Replies
I don't see why not.
thanks for answer!
when I try to db push I am getting this
i tried rebuilding packages and db with @electron/rebuild but no luck there. Do you have something on mind what can help?
You are probably not going to be able to run migrations inside an electron app. Drizzle kit has dependencies that might not be available
But you can run the migrations in a node environment and run your queries within electron, with a compatible driver