docs.rs failed to build hiver-tx-0.1.0-alpha.6
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
hiver-tx
Transaction management for Hiver Framework
Hiver框架的事务管理
📋 Overview / 概述
hiver-tx provides declarative transaction management for Hiver applications, similar to Spring's @Transactional annotation.
hiver-tx 为Hiver应用程序提供声明式事务管理,类似于Spring的@Transactional注解。
Key Features / 核心特性:
- ✅ @Transactional - Declarative transactions
- ✅ Transaction Manager - Transaction lifecycle
- ✅ Isolation Levels - Transaction isolation
- ✅ Propagation - Transaction propagation
- ✅ Rollback Rules - Custom rollback behavior
🚀 Quick Start / 快速开始
Installation / 安装
[]
= "0.1.0-alpha"
= "0.1.0-alpha"
Basic Usage / 基本用法
use Transactional;
use transactional;
;
📖 Transaction Features / 事务功能
Transaction Propagation / 事务传播
use Propagation;
// REQUIRED (default) - Join existing or create new
// REQUIRES_NEW - Always create new transaction
// NESTED - Nested transaction
// SUPPORTS - Join if exists, otherwise no transaction
// NOT_SUPPORTED - Suspend current transaction
// NEVER - Fail if transaction exists
// MANDATORY - Fail if no transaction
Isolation Levels / 隔离级别
use IsolationLevel;
// READ_UNCOMMITTED - Lowest isolation
// READ_COMMITTED - Default for most databases
// REPEATABLE_READ - Prevent non-repeatable reads
// SERIALIZABLE - Highest isolation
Rollback Rules / 回滚规则
// Rollback on specific exceptions / 特定异常时回滚
// Don't rollback on specific exceptions / 特定异常时不回滚
// Rollback on all exceptions (default) / 所有异常时回滚(默认)
🚦 Roadmap / 路线图
Phase 3: Core Transactions ✅ (Completed / 已完成)
- @Transactional annotation
- Transaction manager
- Isolation levels
- Propagation
Phase 4: Advanced Features 🔄 (In Progress / 进行中)
- Distributed transactions
- Transaction synchronization
- Savepoints
📚 Documentation / 文档
- API Documentation: docs.rs/hiver-tx
Built with ❤️ for transaction management
为事务管理构建 ❤️