node.js - nodejs有什么嵌入式数据库方案替代sqlite3吗
阿神
阿神 2017-04-17 14:26:17
0
3
756

我是使用electron开发,考虑到electron可能比较小众,提个问题估计都是0回复。不过问nodejs其实一样的。

本来考虑使用sqlite3做嵌入式数据库,但是折腾了很久,一直报错。一直没能解决。

后来使用pouchdb做为替代方案,但是速度太慢了。

考虑到桌面应用,什么mysql这些东西肯定没法使用了,sqlite3又一直是个坑。除了sqlite3,还有什么解决方案?

阿神
阿神

闭关修行中......

reply all(3)
Ty80

I think I asked you about this before, but I forgot to reply.

I am using nedb in electron and I have never tried sqllite3. There seem to be many problems.

You can try it. I can guarantee that this will run under electron. As for the speed, I won’t talk about it. I haven’t done any performance testing. Just go to the official website and get the results:

大家讲道理

Nodejs’s sqlite3 has no problem at all. There may be some compatibility issues and problems will occur under WINDOWS. And it uses C code, which is very troublesome to compile.

Ty80

To use sqlite3 in electron under windows, you may need a complete visual studio to compile correctly. More troublesome.

Another way is not to embed it. When electron starts, just start other database processes such as mysql process or mongodb process. The packaging will be relatively large, but the functions are complete.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template