How to see stored data in LiteDB-NoSQL

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.

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


You can find a bare bones viewer here.

Tags:

.Net

Nosql

Litedb