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
//! # Vantage Table
//!
//! Table = DataSet with Columns
//!
//! This crate provides definition for Columns, TableSource - necessary trait for Database SDKs to implement.
//!
//! Additionally this crate implements generic Table struct and AnyTable type-erasing wrapper.
//!
//! ## Example
//!
//! ```rust,ignore
//! use vantage_table::{Table, Column, EmptyEntity};
//! use vantage_expressions::expr;
//!
//! // Create a new table with a datasource
//! let mut table = Table::new("users", my_datasource);
//!
//! // Add columns
//! table.add_column(Column::new("name"));
//! table.add_column(Column::new("email").with_alias("user_email"));
//!
//! // Add conditions
//! table.add_condition(expr!("age > {}", 18));
//! table.add_condition(expr!("status = {}", "active"));
//!
//! // Or use the builder pattern
//! let table = Table::new("users", my_datasource)
//! .with(|t| {
//! t.add_column(Column::new("name"));
//! t.add_condition(expr!("active = {}", true));
//! });
//! ```
// TODO: Re-enable when 0.3 migration is complete
// pub mod models_macro;
// pub mod record;
// pub mod references;
// pub mod with_columns;