Crates.io | rapiddb-web |
lib.rs | rapiddb-web |
version | 0.1.32 |
source | src |
created_at | 2023-11-26 12:31:43.913865 |
updated_at | 2024-10-17 20:31:07.896907 |
description | A reasonably fast configurable embedded key-value sensor database |
homepage | |
repository | https://github.com/kruserr/rapiddb/ |
max_upload_size | |
id | 1049073 |
size | 81,158 |
A reasonably fast configurable embedded key-value sensor database
Run database with docker
docker run -dit --rm -p 3030:3030 --name rapiddb kruserr/rapiddb:0.1
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
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.
Visit the Documentation.
Visit the Examples.