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
//! Secra Database 库
//!
//! 提供数据库连接、连接池、Schema 和表管理功能
//!
//! # 示例
//!
//! ```no_run
//! use secra_database::{DatabaseConfig, DatabaseService, ConnectionOptions};
//!
//! # async fn example() -> Result<(), Box<dyn std::error::Error>> {
//! let config = DatabaseConfig {
//! database_type: "postgres".to_string(),
//! host: "localhost".to_string(),
//! port: 5432,
//! username: "user".to_string(),
//! password: "password".to_string(),
//! database_name: "mydb".to_string(),
//! schema: "public".to_string(),
//! logging_level: "info".to_string(),
//! use_pgbouncer: false,
//! };
//!
//! let db = DatabaseService::init(&config, None).await?;
//! # Ok(())
//! # }
//! ```
// 重新导出常用的类型和函数
pub use ;
pub use ;
pub use ;
pub use ;