3 releases (breaking)
Uses new Rust 2024
| new 0.30.0 | Mar 31, 2026 |
|---|---|
| 0.29.0 | Mar 27, 2026 |
| 0.28.0 | Feb 24, 2026 |
#2663 in WebAssembly
49 downloads per month
Used in 3 crates
37KB
490 lines
WASI SQL Service
This module implements a runtime service for wasi:sql
(https://github.com/aspect-build/wasi-sql).
Omnia WASI SQL
This crate provides the SQL database interface for the Omnia runtime.
Interface
Implements the wasi:sql WIT interface.
Backend
- Host: Uses
rusqliteto provide aSQLitebackend. Supports both in-memory (:memory:) and file-based databases.
Features
Guest ORM Layer
The guest module provides query builders for type-safe database operations:
- Entity macro: Declare database models with automatic trait implementations.
- Query builders: Fluent APIs for SELECT, INSERT, UPDATE, DELETE.
- Joins & Filters: Type-safe query construction.
Usage
Add this crate to your Cargo.toml and use it in your runtime configuration:
use omnia::runtime;
use omnia_wasi_sql::SqlDefault;
omnia::runtime!({
"sql": SqlDefault,
});
License
MIT OR Apache-2.0
Dependencies
~5–34MB
~444K SLoC