Expand description
Shelly data-layer primitives.
This crate is intentionally transport-agnostic and DB-driver-agnostic. It provides:
- schema metadata
- changeset casting/validation
- repo traits + an in-memory adapter abstraction
- query composition primitives
- migration loading/state application helpers
Structs§
- Adapter
Call Contract - Adapter
Conformance Check - Adapter
Conformance Report - Analytics
Event - AppService
Error - Applied
Migration - Auth
Credentials - Auth
Identity - Auth
Session - Axiom
Telemetry Bridge - Background
JobHandle - Background
JobRequest - Background
JobStatus - Cache
Entry - Changeset
- Database
Config - Email
Message - Email
Receipt - Field
- Filter
- InMemory
Axiom Sink - InMemory
Cache Backend - InMemory
Identity Service - InMemory
JobOrchestrator - InMemory
Open Search Adapter - InMemory
Queue Backend - InMemory
Single Store Adapter - InMemory
Transactional Email Service - Integration
Error - JobHandle
- JobOrchestrator
Background Jobs - JobRequest
- JobStatus
- Lifecycle
Hooks - Memory
Repo - Migration
- Migration
Engine - Migration
Status - MySql
Adapter - Pagination
- Postgres
Adapter - Query
- Query
Context - Queue
Message - Retry
Policy - Schema
- Search
Request - Search
Response - Sort
- SqlCommand
- Sqlite
Adapter - Stored
Row - Validation
Error
Enums§
- Adapter
Kind - AppService
Error Kind - Background
JobState - Data
Error - Field
Type - Filter
Operator - Integration
Error Kind - JobState
- Sort
Direction
Constants§
- CONTEXT_
TAG_ CORRELATION_ ID - CONTEXT_
TAG_ REQUEST_ ID - CONTEXT_
TAG_ RETRY_ INITIAL_ BACKOFF_ MS - CONTEXT_
TAG_ RETRY_ MAX_ ATTEMPTS - CONTEXT_
TAG_ RETRY_ MAX_ BACKOFF_ MS - CONTEXT_
TAG_ TIMEOUT_ MS
Traits§
- Adapter
Driver - Analytics
Sink - Background
JobService - Cache
Backend - Connection
Lifecycle - Connection
Lifecycle Hook - Identity
Service - JobOrchestrator
- Open
Search Adapter - Queue
Backend - Repo
- Schema
Definition - Single
Store Adapter - Transactional
Email Service - Trigger
DevAdapter - Typed
Query Boundary
Functions§
- adapter_
for - load_
migrations - map_
app_ service_ error - map_
app_ service_ result - map_
integration_ error - map_
integration_ result - query_
from_ search - run_
adapter_ conformance_ suite - run_
with_ contract - run_
with_ retry