uorm 0.8.0

Rust 下的轻量级 ORM 框架,借鉴了 Java MyBatis 的设计理念,强调 SQL 与业务逻辑分离。它结合 Rust 的类型系统与宏机制,支持编写原生 SQL 并自动映射结果,兼容 async/await,兼顾性能与可控性。
Documentation
pub mod connection;
pub mod driver;
#[cfg(feature = "mysql")]
pub mod mysql;
#[cfg(feature = "sqlite")]
pub mod sqlite;
pub mod value;

pub use value::Value;

use std::collections::HashMap;

pub const DEFAULT_DB_NAME: &str = "default";

pub struct PoolOptions {
    pub max_open_conns: u64, // Set the maximum number of connections in the pool
    pub max_idle_conns: u64, // Set the maximum number of idle connections in the pool
    pub max_lifetime: u64,   // Set the maximum lifetime of a connection
    pub timeout: u64,        // Set the timeout for getting a connection from the pool
    pub extra_params: HashMap<String, String>,
}