https://github.com/mustakimali/litedb.shell.netcore
Cross platform LiteDB.Shell - compiled against netcoreapp1.1
https://github.com/mustakimali/litedb.shell.netcore
litedb litedb-database litedb-shell netcore nosql
Last synced: about 1 year ago
JSON representation
Cross platform LiteDB.Shell - compiled against netcoreapp1.1
- Host: GitHub
- URL: https://github.com/mustakimali/litedb.shell.netcore
- Owner: mustakimali
- Created: 2017-06-21T21:41:45.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-21T21:44:46.000Z (about 9 years ago)
- Last Synced: 2025-06-05T05:26:16.138Z (about 1 year ago)
- Topics: litedb, litedb-database, litedb-shell, netcore, nosql
- Language: C#
- Size: 19.5 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LiteDB.Shell - compiled against `netcoreapp1.1`
I use this to browse [LiteDB](https://github.com/mbdavid/LiteDB) Database in Linux and Mac.
The code came directly from [LiteDB.Shell](https://github.com/mbdavid/LiteDB/tree/master/LiteDB.Shell) by [mbdavid](https://github.com/mbdavid)
All thanks goes to the original author of LiteDB project
# Usage
- Clone
- `dotnet restore & dotnet publish`
- `cd bin/Debug/netcoreapp1.1/publish/`
- `dotnet LiteDB.Shell.NetCore.dll `
```
Basic Shell Commands - try `help full` for all commands
=======================================================
> open |
Open/Crete a new database
> show collections
List all collections inside database
> db..insert
Insert a new document into collection
> db..update
Update a document inside collection
> db..delete
Delete documents using a filter clausule (see find)
> db..find [skip N][limit N]
Show filtered documents based on index search
> db..count
Show count rows according query filter
> db..ensureIndex [true|{options}]
Create a new index document field. For unique key, use true
> db..indexes
List all indexes in this collection
= [=|>|>=|<|<=|!=|like|between]
Filter query syntax
= ( [and|or] [and|or] ...)
Multi queries syntax
Try:
> db.customers.insert { _id:1, name:"John Doe", age: 37 }
> db.customers.ensureIndex name
> db.customers.find name like "John"
> db.customers.find name like "John" and _id between [0, 100] limit 10
```
> I could not find any GUI tool to browse LiteDB database in Unix platform, if you know one - please let me know.