NOsql Object (NO2 a.k.a Nitrite) database is an open source nosql embedded document store written in Java. It has MongoDB like API. It supports both in-memory and file based persistent store.
Nitrite is an embedded database ideal for desktop, mobile or small web applications.
Features:
- Schemaless document collection and object repository
- In-memory / file-based store
- Pluggable storage engines - mvstore, mapdb, rocksdb
- ACID transaction
- Schema migration
- Indexing
- Full text search
- Rx-Java support
- Both way replication via Nitrite DataGate server
- Very fast, lightweight and fluent API
- Android compatibility (API Level 19)
| Feature | Details |
|---|---|
| Embedded |
|
| Data |
|
| Security |
|
| Scalable | Benchmark Reference |
| Replication |
Both way replication via Nitrite DataGate server
Automatic Replication Schema Migration ` |
| Recovery |
Export data to a file Import data from the file ` |
Simple model
POST http://localhost:8080/api/medicalRecords
{
"id": 1,
"name": "Sripad",
"createdDate": "2008-01-29"
}
GET http://localhost:8080/api/medicalRecords
[
{
"id": 1,
"name": "Sripad",
"createdDate": "2008-01-29"
}
]
Documents
Upload
POST http://localhost:8080/api/medicalDocuments
Form Data:
file: <file>
id: 1
Download
GET http://localhost:8080/api/medicalDocuments/1
All Documents
GET GET http://localhost:8080/api/medicalDocuments