search

Home  >  Q&A  >  body text

node.js - nodejs有什么嵌入式数据库方案替代sqlite3吗

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

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

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

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

阿神阿神2779 days ago757

reply all(3)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 14:28:17

    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:

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 14:28:17

    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.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 14:28:17

    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.

    reply
    0
  • Cancelreply