Hello Electron Community!
Right to the question. I am using sqlite3 in my Electron application, and I was wondering as to where the logical place for the code pertaining to models and migrations to live. I have an image with my current file structure for my application. Thoughts?
Additionally, again pertaining to db usage conventions, where should db initialization and query logic live? As it currently stands, I initialize the db and attach it to the
main.js on the Browser side , and I query the db on Renderer side with the
remote.getGlobal. Any thoughts?
I suppose this is an open ended discussion. All input is welcome. Thanks.