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
//! Database connection pool trait
//!
//! This trait abstracts database connection pooling, allowing users to
//! swap between SeaORM, SQLx, Diesel, or custom implementations.
use crateResult;
use async_trait;
use Any;
/// A connection handle from a database pool
///
/// This is intentionally opaque - each implementation provides
/// its own connection type (e.g., `DatabaseConnection` for SeaORM)
/// Database connection pool trait
///
/// Implementations should manage connection pooling internally
/// and provide connections on demand.
// async_trait macro handles Send/Sync bounds