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
AsyncCancellationToken
AsyncMemoryRepo
AsyncQueryContext
AuthCredentials
AuthIdentity
AuthSession
AxiomTelemetryBridge
BackgroundJobHandle
BackgroundJobRequest
BackgroundJobStatus
BigQueryDriver
CacheEntry
Changeset
ClickHouseDriver
CompactRowsPayload
DataWindowRequest
DataWindowResponse
DatabaseConfig
EmailMessage
EmailReceipt
Field
Filter
InMemoryAxiomSink
InMemoryBigQueryAdapter
InMemoryCacheBackend
InMemoryClickHouseAdapter
InMemoryIdentityService
InMemoryJobOrchestrator
InMemoryOpenSearchAdapter
InMemoryQueueBackend
InMemorySingleStoreAdapter
InMemoryTransactionalEmailService
IncrementalDiff
IntegrationError
JobHandle
JobOrchestratorBackgroundJobs
JobRequest
JobStatus
KeysetCursor
KeysetPagination
LifecycleHooks
MemoryRepo
Migration
MigrationEngine
MigrationStatus
MySqlAdapter
OpenSearchAdapterDriver
Pagination
PostgresAdapter
Query
QueryContext
QueryWindow
QueueMessage
RetryPolicy
Schema
SearchRequest
SearchResponse
SingleStoreDriver
Sort
SqlCommand
SqliteAdapter
StoredRow
TenantBackgroundJobQuota
TenantPolicyContext
TenantPolicyDecision
TenantQuotaBackgroundJobs
TenantRepoConfig
TenantScopedRepo
ValidationError
WindowPage
WindowToken

Enums§

AdapterKind
AppServiceErrorKind
BackgroundJobState
DataError
FieldType
FilterOperator
IntegrationErrorKind
JobState
KeysetDirection
SortDirection
TenantRepoOperation
WireFormatProfile

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
AsyncRepo
BackgroundJobService
BigQueryAdapter
CacheBackend
ClickHouseAdapter
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_contract_async
run_with_retry
run_with_retry_async

Type Aliases§

AppServiceResult
AsyncRepoFuture
DataResult
IntegrationResult
JobCompletionCallback
Row
TenantPolicyHook