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
//! Query execution and result handling.
//!
//! This module provides the core query execution functionality for exarrow-rs,
//! including SQL statement data structures, prepared statements, and result handling.
//!
//! # v2.0.0 Changes
//!
//! Statement is now a pure data container. Execution is performed by Connection.
//!
//! # Overview
//!
//! The query module is organized into:
//! - `statement` - SQL statement data container with parameter binding
//! - `prepared` - Prepared statement handling for parameterized queries
//! - `results` - Result set iteration and metadata handling
//!
//! # Example
//!
//! ```no_run
//! use exarrow_rs::adbc::Connection;
//!
//! # async fn example(connection: &mut Connection) -> Result<(), Box<dyn std::error::Error>> {
//! // Create a statement (now synchronous)
//! let mut stmt = connection.create_statement("SELECT * FROM users WHERE age > ?");
//!
//! // Bind parameters
//! stmt.bind(0, 18)?;
//!
//! // Execute via Connection
//! let result_set = connection.execute_statement(&stmt).await?;
//!
//! // Iterate over results
//! for batch in result_set.into_iterator()? {
//! let batch = batch?;
//! println!("Batch rows: {}", batch.num_rows());
//! }
//! # Ok(())
//! # }
//! ```
// Re-export commonly used types
pub use ;
pub use ;
pub use PreparedStatement;
pub use ;
pub use ;