#key-value-database #key-value #key-value-store #embedded-database #persistence #db

bin+lib rapiddb-web

A reasonably fast configurable embedded key-value sensor database

7 releases

0.1.29 Mar 5, 2024
0.1.28 Feb 23, 2024
0.1.23 Jan 23, 2024
0.1.22 Nov 26, 2023

#2401 in Database interfaces

Download history 4/week @ 2024-01-22 246/week @ 2024-02-19 61/week @ 2024-02-26 120/week @ 2024-03-04 30/week @ 2024-03-11 34/week @ 2024-03-18 47/week @ 2024-04-01

117 downloads per month
Used in i6

AGPL-3.0

110KB
2.5K SLoC



RapidDB

A reasonably fast configurable embedded key-value sensor database

Features

  • Lightweight embedded database
  • Simple key-value database interface
  • Simple and flexible optional embedded REST API
  • Memory first with on-disk persistence
  • Memory Mapped Append-only Vector backing storage
  • Bring your own database or API implementation
  • Store sensor data inside a sensor database

Getting Started

Docker

Run database with docker

docker run -dit --rm -p 3030:3030 --name rapiddb kruserr/rapiddb:0.1

Further install options

Use the database with curl

Write to database with curl

curl -X POST localhost:3030/api/v0/test-0 -d '{"temp":4.00}'

Read from database with curl

curl localhost:3030/api/v0/test-0/latest

Explore the API with curl

curl localhost:3030/api/v0
curl localhost:3030/api/v0/sensors
curl localhost:3030/api/v0/test-0

Explore and customize the database

The database is highly customizable, if you use the database inside your cargo project. You can interact with the db object, and explore the IDatabase interface. You can also use warp::Filter to extend the API. You can also implement the IDatabase interface yourself, for your own database. Explore the docs to learn more, or look at the examples.

Documentation

Visit the Documentation.

Examples

Visit the Examples.

Dependencies

~9–20MB
~267K SLoC