Data and State Crates
oxidite-db
Key types:
DbPool,DbTransactionDatabaseType,PoolOptionsModeltrait +#[derive(Model)]ModelQuery,Pagination,SortDirection,QueryBuilderOrmError,OrmResult- relations:
HasMany,HasOne,BelongsTo - migrations:
Migration,MigrationManager
Golden path:
- connect with
DbPool::connectorconnect_with_options - derive
Model - query with
Model::query()+ typed filters/order/pagination - use
with_transactionfor multi-step writes
oxidite-macros
Main macro:
#[derive(Model)]
Attribute forms:
#[model(table = "...")]- supports validation attributes handled by the derive
Use this crate with oxidite-db to reduce model boilerplate while keeping compile-time diagnostics.
oxidite-cache
Main APIs:
- trait
Cache MemoryCacheRedisCacheNamespacedCache
Use for caching read-heavy paths and invalidating by namespace/tag strategy.
oxidite-queue
Main APIs:
Job,JobStatus,JobResultQueue,QueueBackend,MemoryBackendRedisBackend,PostgresBackendWorkerQueueStats,StatsTracker
Use for background jobs with selectable backends.
oxidite-storage
Main APIs:
- trait
Storage LocalStorageS3StorageFileValidator,ValidationRulesStoredFile,FileMetadata
Use for user uploads and object storage abstraction.