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
//! # TegDB - A high-performance, embedded database engine
//!
//! TegDB provides a high-level SQLite-like database interface for easy database operations.
//!
//! ## Database API
//!
//! The `Database` struct provides a SQLite-like interface for easy database operations:
//!
//! ```no_run
//! use tegdb::{Database, Result};
//!
//! # fn main() -> Result<()> {
//! // Open or create a database (.teg enforced)
//! let mut db = Database::open("file:///absolute/path/to/my_database.teg")?;
//!
//! // Create table
//! db.execute("CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT(32), age INTEGER)")?;
//!
//! // Insert data
//! db.execute("INSERT INTO users (id, name, age) VALUES (1, 'Alice', 30)")?;
//!
//! // Query data
//! let result = db.query("SELECT * FROM users")?;
//! for row in result.rows() {
//! println!("User row: {:?}", row);
//! }
//!
//! // Use transactions
//! let mut tx = db.begin_transaction()?;
//! tx.execute("UPDATE users SET age = 31 WHERE id = 1")?;
//! tx.commit()?;
//!
//! # Ok(())
//! # }
//! ```
//!
// Make parser module public since it contains types needed for public API (DataType, ColumnConstraint)
// Make query_processor module public since it contains types needed for public API (TableSchema, ColumnInfo)
// Planner modules are now always available since they're the main execution path
// Cloud sync module (tgstream)
// Extension system
// Only export the high-level Database API and essential error types
pub use ;
pub use ;
// Export extension system types
pub use ;
// Export schema-related types that are needed for public API (get_table_schemas_ref)
pub use ;
pub use ;
// Export parse_sql since it's used by the public Database API (prepare method)
pub use parse_sql;
// Export SqlValue unconditionally as it's needed for working with query results
pub use SqlValue;
// Export embedding functionality for semantic search
pub use ;