Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wasmedge/wasmedge-db-examples
Lightweight database clients in the WasmEdge Runtime
https://github.com/wasmedge/wasmedge-db-examples
async database rust
Last synced: 2 days ago
JSON representation
Lightweight database clients in the WasmEdge Runtime
- Host: GitHub
- URL: https://github.com/wasmedge/wasmedge-db-examples
- Owner: WasmEdge
- License: apache-2.0
- Created: 2022-06-09T21:20:46.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-12T06:12:40.000Z (3 months ago)
- Last Synced: 2024-08-12T07:33:37.959Z (3 months ago)
- Topics: async, database, rust
- Language: Rust
- Homepage:
- Size: 343 KB
- Stars: 64
- Watchers: 4
- Forks: 10
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Database client examples for WasmEdge
Based on WasmEdge's [non-blocking network socket API](https://wasmedge.org/book/en/dev/rust/networking-nonblocking.html) and a Tokio-like [async runtime](https://github.com/WasmEdge/tokio_wasi),
we are able to port popular database drivers and clients for the WasmEdge Runtime. This repo is a collection of examples accessing databases from inside WasmEdge applications.* [MySQL / MariaDB / TiDB](mysql_async/) relational DB example
* [GreptimeDB](greptimedb/) time series DB example
* [Postgres](postgres/) example
* [Redis](redis/) key value store example
* [Qdrant](qdrant/) vector DB exampleAlternatively, you can use the [Dapr SDK for Wasm](https://github.com/second-state/dapr-sdk-wasi) to access database or KV store services attached to your Dapr sidecars. [See examples here](https://github.com/second-state/dapr-wasm).
You can also check out
* [A complete microservice demo](https://github.com/second-state/microservice-rust-mysql) with a HTTP server and a MySQL backend.
* [An event-driven microservice demo](https://github.com/docker/awesome-compose/tree/master/wasmedge-kafka-mysql) with a Kafka queue and a MySQL backend.