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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
//! # Aurora Database
//!
//! Aurora is an embedded document database with tiered storage architecture.
//! It provides document storage, querying, indexing, and search capabilities
//! while optimizing for both performance and durability.
//!
//! ## Key Features
//!
//! * **Tiered Storage**: Hot in-memory cache + persistent cold storage
//! * **Document Model**: Schema-flexible JSON-like document storage
//! * **Querying**: Rich query capabilities with filtering and sorting
//! * **Full-text Search**: Built-in search engine with relevance ranking
//! * **Transactions**: ACID-compliant transaction support
//!
//! ## Quick Start
//!
//! use aurora_db::{Aurora, Value, FieldType};
//!
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! // Open a database
//! let db = Aurora::open("my_app.db")?;
//!
//! // Create a collection
//! db.new_collection("users", vec![
//! ("name", FieldType::String, false),
//! ("email", FieldType::String, true), // unique field
//! ("age", FieldType::Int, false),
//! ]).await?;
//!
//! // Insert data
//! let user_id = db.insert_into("users", vec![
//! ("name", Value::String("Jane Doe".to_string())),
//! ("email", Value::String("jane@example.com".to_string())),
//! ("age", Value::Int(28)),
//! ]).await?;
//!
//! // Query data
//! let users = db.query("users")
//! .filter(|f| f.gt("age", 21))
//! .collect()
//! .await?;
//!
//! # Ok(())
//! # }
//! ```
// Re-export primary types and modules
pub use crateAurora;
pub use crate;
pub use crate;
pub use ;
pub use crate;
// Re-export commonly used storage types
pub use ;
// Re-export PubSub types for convenience
pub use ;
// Re-export Workers types for convenience
pub use ;
// Re-export Transaction types for convenience
pub use ;
// Module declarations
// AQL parser module