Skip to main content

datasynth_generators/temporal/
mod.rs

1//! Temporal attribute generation module.
2//!
3//! This module provides generators for adding temporal attributes to entities,
4//! supporting bi-temporal data models with valid time and transaction time.
5//!
6//! # Features
7//!
8//! - **Valid Time Generation**: Business time ranges for when facts are true
9//! - **Transaction Time Generation**: System recording times with optional delays
10//! - **Version Chain Generation**: Create version histories for entities
11//! - **Configurable Parameters**: Control validity durations, backdating, etc.
12//!
13//! # Example
14//!
15//! ```ignore
16//! use datasynth_generators::temporal::{TemporalAttributeGenerator, TemporalAttributeConfig};
17//!
18//! let config = TemporalAttributeConfig::default();
19//! let mut generator = TemporalAttributeGenerator::new(config, 42, base_date);
20//!
21//! // Wrap an entity with temporal attributes
22//! let temporal_vendor = generator.generate_temporal(vendor);
23//! ```
24
25mod temporal_generator;
26
27pub use temporal_generator::*;