Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to see stored data in LiteDB-NoSQL

Tags:

.net

nosql

litedb

I am learning LiteDB - NoSQL. I have go through the basic example. When I build it, it will generate Data Base File. Now, I just want to read this file to see the data I have stored. Is is possible to read it like we can see the data in MSSQL? How can I see the stored data?

Any help is appreciated. Thanks.

like image 326
Ankita Avatar asked Jan 13 '16 07:01

Ankita


4 Answers

LiteDB comes with a shell console program. With this tool you can insert/update/delete or query any document in your data file. To download LiteDB Shell, go to http://github.com/mbdavid/LiteDB/releases

Some common commands:

  • open yourdatafile.db - Open your datafile
  • db.your_collection_name.find - List all documents inside your collection
  • db.your_collection_name.ensureIndex name - Create an index in name document field
  • db.your_collection_name.find name = 'John' - Search for documents with name = John
  • help full - Show all commands in shell.
like image 58
mbdavid Avatar answered Oct 23 '22 18:10

mbdavid


I have written fully fledged editor, which can be downloaded here https://github.com/JosefNemec/LiteDbExplorer

like image 39
Josef Nemec Avatar answered Oct 23 '22 17:10

Josef Nemec


You can find a bare bones viewer here.

like image 5
Jim Hewitt Avatar answered Oct 23 '22 17:10

Jim Hewitt


You can use LiteDB.Studio which is developed by LiteDB original author. As of today, it is in version 0.5.2 and works well for LiteDB v5.

https://github.com/mbdavid/LiteDB.Studio

Edit: it's Windows only.

like image 1
Mohamed Boulmers Avatar answered Oct 23 '22 18:10

Mohamed Boulmers