Skip to main content

Crate rusticx_core

Crate rusticx_core 

Source
Expand description

Core traits and types for Rusticx ORM.

This crate provides the foundational abstractions that all Rusticx backends build on. End users work with the top-level rusticx crate, not this one directly — but understanding these types helps when implementing custom backends or advanced use cases.

§Key types

TypePurpose
model::ModelTrait every struct must implement (via #[derive(Model)])
repository::RepositoryTyped CRUD repository for one model
adapter::DatabaseAdapterAsync trait all backends implement
adapter::SyncAdapterBlocking wrapper for non-async contexts
query::QueryBuilderComposable, backend-agnostic query builder
value::ValueUniversal value enum bridging Rust ↔ database
error::RusticxErrorAll errors this crate can produce

Re-exports§

pub use error::Result;
pub use error::RusticxError;

Modules§

adapter
column
error
macros_support
model
query
repository
value