Define all cluster drivers in the driver module

This commit is contained in:
2026-11-30 17:59:32 +08:00
parent 353ea1558c
commit 3c551ca0a3
5 changed files with 20 additions and 18 deletions
+4 -2
View File
@@ -6,6 +6,8 @@
箭头从使用方指向定义类型或提供功能的模块。图中省略 `mod` 声明和 `pub use` 导出。
`driver.rs` 集中定义驱动类型,供 SQL 和对象存储配置模块使用。
```mermaid
flowchart LR
lib["lib.rs"] -->|解析 SQL 配置| sql["sql.rs"]
@@ -13,8 +15,8 @@ flowchart LR
sql -->|ConfigError| lib
obj -->|ConfigError| lib
obj -->|ObjectStoreDriver| drv["driver.rs"]
drv -->|SqlDriver| sql
sql -->|SqlDriver| drv["driver.rs"]
obj -->|ObjectStoreDriver| drv
cat["catalog.rs"] -->|为 DeploymentConfig 实现 CRUD| lib
cat -->|统一表示驱动类别| drv