| Crates.io | neemo |
| lib.rs | neemo |
| version | 0.1.3 |
| created_at | 2025-02-09 22:00:49.816806+00 |
| updated_at | 2025-02-10 21:03:16.738753+00 |
| description | A lightweight NoSQL key-value database powered by sled. For queries send them to levidevi61@gmail.com |
| homepage | https://github.com/sazalo101/neemo-db |
| repository | https://github.com/sazalo101/neemo-db |
| max_upload_size | |
| id | 1549335 |
| size | 2,146,071 |
Neemo is a lightweight, embedded document database written in Rust. It provides a simple CLI interface for managing JSON documents with support for indexing, querying, and various database operations.
Cargo.toml:[dependencies]
sled = "0.34"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
log = "0.4"
simplelog = "0.12"
cargo build --release
cargo run --release
Neemo > CREATE DATABASE mydb.nemo
Neemo > USE DATABASE mydb.nemo
Neemo > INSERT doc1
Field: name="John Doe"
Field: age=30
Field: email="john@example.com"
Field: [empty line to finish]
Neemo > GET doc1
Neemo > DELETE doc1
Neemo > LIST
Neemo > QUERY name "John Doe"
Neemo > RANGE age 25 35
Neemo > SEARCH "John"
Neemo > AGGREGATE age sum
Neemo > AGGREGATE age count
Neemo > AGGREGATE age avg
Neemo > BATCH
Neemo > EXPORT backup.json
Neemo > IMPORT backup.json
Neemo > BACKUP backup_db
Neemo > RESTORE backup_db
Neemo > EXIT
or
Neemo > QUIT
Documents in Neemo are stored as JSON objects. When inserting documents, use the following format:
field=value
Examples:
name="John Doe"age=30active=truetags=["rust", "database"]address={"city": "New York", "country": "USA"}neemo.logArc<Mutex<>>Feel free to submit issues and enhancement requests!
This project is licensed under the MIT License - see the LICENSE file for details.