mbdavid / LiteDB

LiteDB - A .NET NoSQL Document Store in a single data file
http://www.litedb.org
MIT License
8.52k stars 1.24k forks source link

Is there any way to make a remote database? #1362

Closed TheBottleCyber closed 4 years ago

TheBottleCyber commented 4 years ago

Wanted to know if there are plans to add the use of a remote LiteDB server I see it this way: using(var db = new LiteRemoteDatabase(ip, port, password, dbName))

If not, please advise how to do it better using the current version Thanks for the answer

mbdavid commented 4 years ago

YES !!! There is real plans to implement LiteDB Server mode. This release will be next implementation after deliver v5 stable. And API will be better: will use same LiteDatabase class (just another constructor and new connection string parameters). The main idea is that you can switch from embedded database to server database just changing connection string.

LiteDB Server will be a .NET core console app that implement TCP/IP (or REST) protocol to communicate clients (using same LiteDB.dll) to this server (LiteDB.Server.exe).

ps: I want invite you to answer my survey form to understand how devs are using LiteDB, so it's easy to me understand how improve for next versions:

https://docs.google.com/forms/d/e/1FAIpQLSc4cNG7wyLKXXcOLIt7Ea4TlXCG6s-51_EfHPu2p5WZ2dIx7A/viewform

Thanks

ADeltsidis commented 4 years ago

Connecting remotely to LiteDB server is definitely a very important feature. Any estimation about when it will be implemented? Looking forward for your answer.