Skip to main content

Crate rbatis_plus

Crate rbatis_plus 

Source
Expand description

RBatis-Plus — MyBatis-Plus equivalent enhancement framework for RBatis.

§Quick start

ⓘ
use rbatis_plus::QueryWrapper;
use rbatis::RBatis;

let rb = RBatis::new();
// rb.init(driver, url)?;

let users: Vec<User> = QueryWrapper::new()
    .eq("name", "Alice")
    .ge("age", 18)
    .query(&rb, "sys_user")
    .await?;

Re-exports§

pub use rbatis_plus_core as core;
pub use rbatis_plus_extension as extension;
pub use rbatis_plus_generator as generator;
pub use rbatis_plus_sqlparser as sqlparser;
pub use rbatis_plus_vernal as vernal;

Structs§

BlockAttackInnerInterceptor
Block-attack inner interceptor.
Column
类型安全的列引用(对标 Java SFunction<T, ?> 的编译期列解析)。
DataI18nInnerInterceptor
结果国际化增强拦截器(对标 Java DataI18nInnerInterceptor)。
DataPermissionInnerInterceptor
Data permission inner interceptor.
DynamicTableNameInnerInterceptor
Dynamic table name inner interceptor.
LambdaQueryWrapper
基于类型安全列引用的查询构建器(对标 Java LambdaQueryWrapper<T>)。
LambdaUpdateWrapper
基于类型安全列引用的更新构建器(对标 Java LambdaUpdateWrapper<T>)。
OptimisticLockerInnerInterceptor
Optimistic locker inner interceptor.
Page
Paginated result wrapper.
PageRequest
Page request parameters.
PaginationInnerInterceptor
分页拦截器(对标 Java PaginationInnerInterceptor)。
QueryWrapper
Query wrapper with String column names.
ServiceImpl
Service 实现基类(对标 Java ServiceImpl<M, T>)。
TableFieldInfo
Per-field metadata.
TableInfo
Per-entity table metadata.
TenantInnerInterceptor
Tenant inner interceptor.
UpdateWrapper
Update wrapper with String column names.

Traits§

BaseMapper
The base mapper trait — provides CRUD operations.
Compare
Comparison condition methods.
Func
Function condition methods: LIKE, IN, IS NULL, GROUP BY, ORDER BY, HAVING.
IService
The service-layer trait — provides high-level CRUD + batch operations.
InnerInterceptor
Inner interceptor — the core extension point for all RBatis-Plus plugins.
Join
Join / 连接操作 trait。
Nested
Nested condition methods: AND, OR, nested groups.
TenantLineHandler
Tenant line handler — provides tenant ID and configuration.