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
//! rdbi - Rust Database Interface
//!
//! A database abstraction layer built on `mysql_async` with derive macros
//! for mapping between Rust structs and database rows.
//!
//! # Features
//!
//! - **Clean Query API**: Fluent query builder with `.bind()` chaining
//! - **Derive Macros**: `#[derive(FromRow, ToParams)]` for automatic mapping
//! - **Batch Operations**: Clean `BatchInsert` API for bulk inserts
//! - **Type Safety**: Strong typing with `Value` enum for all database types
//!
//! # Example
//!
//! ```ignore
//! use rdbi::{Pool, Query, FromRow, ToParams};
//!
//! #[derive(FromRow, ToParams)]
//! pub struct User {
//! #[rdbi(skip_insert)]
//! pub id: i64,
//! pub username: String,
//! pub email: String,
//! }
//!
//! async fn find_user(pool: &impl Pool, id: i64) -> rdbi::Result<Option<User>> {
//! Query::new("SELECT * FROM users WHERE id = ?")
//! .bind(id)
//! .fetch_optional(pool)
//! .await
//! }
//! ```
// Re-export the derive macros
pub use ;
// Re-export main types
pub use BatchInsert;
pub use ;
pub use ;
pub use ;
pub use ;
pub use Value;