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
//! # VelociDB
//!
//! VelociDB is a high-performance, embedded database engine written in Rust.
//! It features a modern architecture designed for NVMe storage and multi-core systems.
//!
//! ## Key Features
//!
//! - **MVCC**: Multi-Version Concurrency Control for non-blocking reads.
//! - **Async I/O**: Built on `tokio` and `io_uring` (on Linux) for high throughput.
//! - **SIMD Acceleration**: Vectorized execution for query processing.
//! - **Persistent Memory**: Direct Access (DAX) support for PMEM.
//!
//! ## Quick Start
//!
//! ```rust,no_run
//! use velocidb::Database;
//!
//! # fn main() -> anyhow::Result<()> {
//! // Open a database (creates it if it doesn't exist)
//! let db = Database::open("my_database.db")?;
//!
//! // Create a table
//! db.execute("CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT, age INTEGER)")?;
//!
//! // Insert data
//! db.execute("INSERT INTO users VALUES (1, 'Alice', 30)")?;
//! db.execute("INSERT INTO users VALUES (2, 'Bob', 25)")?;
//!
//! // Query data
//! let results = db.query("SELECT * FROM users WHERE age > 25")?;
//!
//! for row in results.rows {
//! println!("Found user: {:?}", row.values);
//! }
//! # Ok(())
//! # }
//! ```
// Modern architecture modules
// Multi-Version Concurrency Control
// Asynchronous I/O with Tokio/io_uring
// Lock-free data structures
// Vectorized execution with SIMD
// Cache-conscious B-tree
// CRDT-based synchronization
// Cloud storage VFS
// Hybrid row/columnar storage
// Persistent memory (PMEM/DAX) support
// Re-export commonly used types
pub use Database;
pub use ;
// Re-export modern features
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;