sql_middleware/pool/
mod.rs

1pub mod connection;
2pub mod interaction;
3pub mod types;
4
5pub use connection::MiddlewarePoolConnection;
6pub use types::{MiddlewarePool, SqliteWritePool};
7
8use crate::types::DatabaseType;
9
10/// Configuration and connection pool for a database
11///
12/// This struct holds both the configuration and the connection pool
13/// for a database, making it easier to manage database connections.
14#[derive(Clone, Debug)]
15pub struct ConfigAndPool {
16    /// The connection pool
17    pub pool: MiddlewarePool,
18    /// The database type
19    pub db_type: DatabaseType,
20}