rustrails-record 0.1.2

ORM layer (ActiveRecord equivalent)
Documentation
#![allow(async_fn_in_trait)]

//! ActiveRecord-style persistence and querying on top of SeaORM.

extern crate self as rustrails_record;

/// Association helpers.
pub mod associations;
/// Base record traits and errors.
pub mod base;
/// Callback integration points.
pub mod callbacks;
/// Database connection management.
pub mod connection;
/// Counter cache helpers.
pub mod counter_cache;
/// Delegated type helpers.
pub mod delegated_type;
/// Record-level dirty tracking helpers.
pub mod dirty;
/// Attribute encryption helpers.
pub mod encryption;
/// Enum-backed column helpers.
pub mod enum_type;
/// Fixture loading support.
pub mod fixtures;
/// Single-table inheritance helpers.
pub mod inheritance;
/// Bulk insert and upsert helpers.
pub mod insert_all;
/// Locking primitives.
pub mod locking;
/// Schema migration helpers.
pub mod migration;
/// Nested-attribute assignment helpers.
pub mod nested_attributes;
/// Touch suppression helpers.
pub mod no_touching;
/// Attribute normalization helpers.
pub mod normalization;
/// Persistence behavior for records.
pub mod persistence;
/// Per-request query cache helpers.
pub mod query_cache;
/// Query helpers for records.
pub mod querying;
/// Readonly attribute helpers.
pub mod readonly_attributes;
/// Association reflection helpers.
pub mod reflection;
/// Chainable relation builder.
pub mod relation;
/// SQL sanitization helpers.
pub mod sanitization;
/// Schema introspection helpers.
pub mod schema;
/// Default scope helpers.
pub mod scoping;
/// Secure token helpers.
pub mod secure_token;
/// Attribute serialization helpers.
pub mod serialization_ext;
/// Signed record identifier helpers.
pub mod signed_id;
/// JSON-backed store helpers.
pub mod store;
/// Strict-loading helpers.
pub mod strict_loading;
/// Sync wrappers for persistence operations.
pub mod sync_persistence;
/// Sync wrappers for query operations.
pub mod sync_querying;
/// Timestamp behavior.
pub mod timestamp;
/// Touch helpers.
pub mod touch;
/// Transaction helpers.
pub mod transactions;
/// Record-level validations.
pub mod validations;

pub use base::{Record, RecordError, RecordState};
pub use connection::{ConnectionError, ConnectionPool, establish};
pub use querying::OrderDirection;
pub use relation::Relation;
pub use sync_persistence::Persistence;
pub use sync_querying::Querying;

#[cfg(test)]
mod rails_port_tests;