Skip to main content

rustrails_record/
lib.rs

1#![allow(async_fn_in_trait)]
2
3//! ActiveRecord-style persistence and querying on top of SeaORM.
4
5extern crate self as rustrails_record;
6
7/// Association helpers.
8pub mod associations;
9/// Base record traits and errors.
10pub mod base;
11/// Callback integration points.
12pub mod callbacks;
13/// Database connection management.
14pub mod connection;
15/// Counter cache helpers.
16pub mod counter_cache;
17/// Delegated type helpers.
18pub mod delegated_type;
19/// Record-level dirty tracking helpers.
20pub mod dirty;
21/// Attribute encryption helpers.
22pub mod encryption;
23/// Enum-backed column helpers.
24pub mod enum_type;
25/// Fixture loading support.
26pub mod fixtures;
27/// Single-table inheritance helpers.
28pub mod inheritance;
29/// Bulk insert and upsert helpers.
30pub mod insert_all;
31/// Locking primitives.
32pub mod locking;
33/// Schema migration helpers.
34pub mod migration;
35/// Nested-attribute assignment helpers.
36pub mod nested_attributes;
37/// Touch suppression helpers.
38pub mod no_touching;
39/// Attribute normalization helpers.
40pub mod normalization;
41/// Persistence behavior for records.
42pub mod persistence;
43/// Per-request query cache helpers.
44pub mod query_cache;
45/// Query helpers for records.
46pub mod querying;
47/// Readonly attribute helpers.
48pub mod readonly_attributes;
49/// Association reflection helpers.
50pub mod reflection;
51/// Chainable relation builder.
52pub mod relation;
53/// SQL sanitization helpers.
54pub mod sanitization;
55/// Schema introspection helpers.
56pub mod schema;
57/// Default scope helpers.
58pub mod scoping;
59/// Secure token helpers.
60pub mod secure_token;
61/// Attribute serialization helpers.
62pub mod serialization_ext;
63/// Signed record identifier helpers.
64pub mod signed_id;
65/// JSON-backed store helpers.
66pub mod store;
67/// Strict-loading helpers.
68pub mod strict_loading;
69/// Sync wrappers for persistence operations.
70pub mod sync_persistence;
71/// Sync wrappers for query operations.
72pub mod sync_querying;
73/// Timestamp behavior.
74pub mod timestamp;
75/// Touch helpers.
76pub mod touch;
77/// Transaction helpers.
78pub mod transactions;
79/// Record-level validations.
80pub mod validations;
81
82pub use base::{Record, RecordError, RecordState};
83pub use connection::{ConnectionError, ConnectionPool, establish};
84pub use querying::OrderDirection;
85pub use relation::Relation;
86pub use sync_persistence::Persistence;
87pub use sync_querying::Querying;
88
89#[cfg(test)]
90mod rails_port_tests;