Crate sqlxplus

Crate sqlxplus 

Source

Re-exports§

pub use database_info::DatabaseInfo;
pub use database_type::DatabaseType;
pub use db_pool::DbDriver;
pub use db_pool::DbPool;
pub use traits::Crud;
pub use traits::Model;
pub use builder::BindValue;
pub use builder::DeleteBuilder;
pub use builder::InsertBuilder;
pub use builder::QueryBuilder;
pub use builder::UpdateBuilder;
pub use builder::UpdateFields;
pub use transaction::with_mysql_nested_transaction;
pub use transaction::with_postgres_nested_transaction;
pub use transaction::with_transaction;
pub use transaction::Transaction;
pub use error::Result;
pub use error::SqlxPlusError;

Modules§

builder
CRUD Builder 模块
crud
database_info
数据库信息抽象层
database_type
db_pool
error
executor
macros_api
宏接口模块,供 proc-macro crate 使用
traits
transaction
utils
工具函数模块

Macros§

apply_bind_value
辅助函数:将单个绑定值应用到查询中 这是一个通用的绑定逻辑,通过宏来应用到不同的查询类型

Derive Macros§

CRUD
生成 CRUD trait 的实现
ModelMeta
生成 Model trait 的实现