1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Declare modules
/// Configuration options for the database core.
pub use crateDbConfig;
/// Main entry point for interacting with the time-series database core.
pub use crateDbCore;
/// Error type for database operations.
pub use crateDbError;
/// Snapshot manager for point-in-time backups and fast recovery.
pub use crateSnapshotter;
/// Write-Ahead Log for durability and recovery.
pub use crateWriteAheadLog;
/// Structured event hook for observability.
pub use crate;
/// Represents a single time-series data point.
pub use crateDataPoint;
/// Type alias for a set of tags (key-value pairs) associated with a data point.
pub use crateTagSet;
/// Type alias for a timestamp (nanoseconds since epoch).
pub use crateTimestamp;
/// Type alias for a value in a time series (f64).
pub use crateValue;
// Default flush interval if not specified
use Duration;
/// The default interval between automatic buffer flushes (1 second).
pub const DEFAULT_FLUSH_INTERVAL: Duration = from_secs;