docs: update db module to v1.0.3 and add auto ID features to index (by AI)
This commit is contained in:
parent
edd18312a3
commit
6b8f928352
@ -20,7 +20,7 @@
|
||||
| **go/config** | v1.0.4 | 文件配置加载; 环境覆盖; 结构映射 | cast, convert, file | [./config/README.md](https://apigo.cc/go/config) |
|
||||
| **go/log** | v1.0.0 | 高性能日志; 脱敏; 多输出渠道 | cast, config, shell | [./log/README.md](https://apigo.cc/go/log) |
|
||||
| **go/http** | v1.0.3 | 高性能 HTTP 客户端; 泛型绑定; 自动透传 | cast, convert, file, log | [./http/README.md](https://apigo.cc/go/http) |
|
||||
| **go/db** | v1.0.1 | 极简数据库抽象; 自动绑定; 读写分离 | cast, config, convert, crypto, id, log, rand, safe, shell | [./db/README.md](https://apigo.cc/go/db) |
|
||||
| **go/db** | v1.0.3 | 极简数据库抽象; 自动绑定; 读写分离; 自动 ID 生成 | cast, config, convert, crypto, id, log, rand, safe, shell | [./db/README.md](https://apigo.cc/go/db) |
|
||||
| **go/redis** | v1.0.2 | 高性能 Redis 客户端; 分布式 ID; 发布订阅 | cast, config, crypto, id, log, safe | [./redis/README.md](https://apigo.cc/go/redis) |
|
||||
|
||||
---
|
||||
@ -104,9 +104,9 @@
|
||||
- **工具**: RelayHeaders (透传列表)
|
||||
|
||||
### db (极简数据库抽象)
|
||||
- **意图**: 意图优先的数据库交互层。自动处理结果绑定、连接池与读写分离,提供 SQL 自动化生成与内存安全防护。
|
||||
- **意图**: 意图优先的数据库交互层。自动处理结果绑定、连接池、读写分离与自动 ID/版本管理。
|
||||
- **API**:
|
||||
- **核心**: GetDB, GetDBWithoutCache, SetEncryptKeys
|
||||
- **核心**: GetDB, GetDBWithoutCache, SetEncryptKeys, Sync (DSL)
|
||||
- **操作**: Insert, Replace, Update, Delete, Exec, Query, Prepare, Begin
|
||||
- **自动特性**: autoVersion (乐观锁), 自动随机 ID (char(8-14)), 影子删除
|
||||
- **结果绑定**: To, MapResults, SliceResults, StringMapResults, StringSliceResults, MapOnR1, StringMapOnR1, IntsOnC1, StringsOnC1, IntOnR1C1, FloatOnR1C1, StringOnR1C1, ToKV
|
||||
, ToKV
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user