wasmedge-db-examples icon indicating copy to clipboard operation
wasmedge-db-examples copied to clipboard

Lightweight database clients in the WasmEdge Runtime

Database client examples for WasmEdge

Based on WasmEdge's non-blocking network socket API and a Tokio-like async runtime, 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 relational DB example
  • GreptimeDB time series DB example
  • Postgres example
  • Redis key value store example
  • Qdrant vector DB example

Alternatively, you can use the Dapr SDK for Wasm to access database or KV store services attached to your Dapr sidecars. See examples here.

You can also check out