Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MySQL bundled within an NPM app

The idea is to bundle the MySQL database within the npm app. The reason behind this is because the app is intended to run as a stand-alone desktop application built using Electron and, of course, many other modules.

So far, all of my searches for a MySQL database module only leads to the drivers. All other tutorials talk about the typical web app set up wherein the MySQL db is installed in the server. A comment from another post discussed how to set up MySQL db in server and just mentioned that if it's a desktop app, it's a whole other issue. I want to know if there is a way to do this or if it isn't possible at all.

like image 912
JD Hernandez Avatar asked Nov 08 '22 03:11

JD Hernandez


1 Answers

After further research (and a lot of compromise in the initial design), I decided to use Lovefield by Google. It is the closest to what I have been looking for since 1. it is embedded in the browser and 2. structured query is how you get data. Still hoping there would be a solution to an embedded MySQL database in an Electron app.

like image 145
JD Hernandez Avatar answered Nov 15 '22 06:11

JD Hernandez