An open API service indexing awesome lists of open source software.

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: 4 months ago
JSON representation

Cross platform LiteDB.Shell - compiled against netcoreapp1.1

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.