电子应用程序与数据库 [英] Electron App with Database
问题描述
我正在开发一个应用程序使用atom的电子项目,我想有一个轻量级的数据库,用于该应用程序。到目前为止,我没有成功,非常沮丧。请帮助我找到一个本地数据库。
I'm developing an application using atom's electron project and I want to have a light weight database to be used with that application. So far I was unsuccessful and very frustrated with it. Please, Help me find a local database.
我试图使用sqlite3没有成功。我不能建立它。我使用电子v0.31.0,我认为在内部使用iojs v3.1.0,这是导致sqlite3无法编译。
I have tried to use sqlite3 with no success. I can not build it. I'm using electron v0.31.0 that I think uses iojs v3.1.0 internally and that is causing the sqlite3 to not compile.
推荐答案
p>我会考虑使用 knexjs ,因为它实际上相当成熟,并且获得了相当多的速度。您需要以下其中一个...
I would consider using knexjs as it is actually quite mature and has picked up quite a lot of speed. You'll need one of the following though...
- pg
- sqlite3 ***
- mysql
- mysql2
- mariasql
- strong-oracle
- oracle
- pg
- sqlite3 ***
- mysql
- mysql2
- mariasql
- strong-oracle
- oracle
此外,我发现此链接帮助我解决了我的node_sqlite3的困扰。
Also, I have found that this link helped me resolve my node_sqlite3 woes.
快乐编码!
这篇关于电子应用程序与数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!