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.
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 datafiledb.your_collection_name.find
- List all documents inside your collectiondb.your_collection_name.ensureIndex name
- Create an index in name
document fielddb.your_collection_name.find name = 'John'
- Search for documents with name = Johnhelp 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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With