Skip to main content

Crate shelly_data

Crate shelly_data 

Source
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§

AdapterCallContract
AdapterConformanceCheck
AdapterConformanceReport
AnalyticsEvent
AppServiceError
AppliedMigration
AuthCredentials
AuthIdentity
AuthSession
AxiomTelemetryBridge
BackgroundJobHandle
BackgroundJobRequest
BackgroundJobStatus
CacheEntry
Changeset
DatabaseConfig
EmailMessage
EmailReceipt
Field
Filter
InMemoryAxiomSink
InMemoryCacheBackend
InMemoryIdentityService
InMemoryJobOrchestrator
InMemoryOpenSearchAdapter
InMemoryQueueBackend
InMemorySingleStoreAdapter
InMemoryTransactionalEmailService
IntegrationError
JobHandle
JobOrchestratorBackgroundJobs
JobRequest
JobStatus
LifecycleHooks
MemoryRepo
Migration
MigrationEngine
MigrationStatus
MySqlAdapter
Pagination
PostgresAdapter
Query
QueryContext
QueueMessage
RetryPolicy
Schema
SearchRequest
SearchResponse
Sort
SqlCommand
SqliteAdapter
StoredRow
ValidationError

Enums§

AdapterKind
AppServiceErrorKind
BackgroundJobState
DataError
FieldType
FilterOperator
IntegrationErrorKind
JobState
SortDirection

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§

AdapterDriver
AnalyticsSink
BackgroundJobService
CacheBackend
ConnectionLifecycle
ConnectionLifecycleHook
IdentityService
JobOrchestrator
OpenSearchAdapter
QueueBackend
Repo
SchemaDefinition
SingleStoreAdapter
TransactionalEmailService
TriggerDevAdapter
TypedQueryBoundary

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

Type Aliases§

AppServiceResult
DataResult
IntegrationResult
JobCompletionCallback
Row