DT
Drizzle Team•12mo ago
runderr

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
Angelelz
Angelelz•12mo ago
I don't see why not.
runderr
runderrOP•12mo ago
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?
No description
Angelelz
Angelelz•12mo ago
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
Want results from more Discord servers?
Add your server