zgzgorg / zgzg-bot

1 stars 1 forks source link

Consider use MongoDB and NeDB #3

Open kis87988 opened 4 years ago

kis87988 commented 4 years ago

We currently don't have any data storage database.

Personally, I consider use MongoDB, but sometimes if we only run on the fly. We may not have MongoDB server ready. Therefore, we should have a solution similar to SQLlite.

A MongoDB SQLlite version is NeDB.

Our application should work with Both MongoDB and NeDB.

Therefore, consider to create a abstract database class work both of DB, and then we have both bot to DB driver for both type of DB.

NeDB: https://github.com/louischatriot/nedb

xinbenlv commented 4 years ago

That's f**king awesome~

xinbenlv commented 4 years ago

forking, I mean