功能:增强 Schema 系统和添加新示例

- 扩展 Schema 支持更多数据类型(Duration、URL、JSON 等)
- 优化 SSTable 编码解码性能
- 添加多个新示例程序:
  - all_types: 展示所有支持的数据类型
  - new_types: 演示新增类型的使用
  - struct_tags: 展示结构体标签功能
  - time_duration: 时间和持续时间处理示例
- 完善测试用例和文档
- 优化代码结构和错误处理
This commit is contained in:
2025-10-10 00:20:45 +08:00
parent 13cc622e46
commit 6000930c40
50 changed files with 3070 additions and 452 deletions

1
test_db/CURRENT Normal file
View File

@@ -0,0 +1 @@
MANIFEST-000001

BIN
test_db/MANIFEST-000001 Normal file

Binary file not shown.

24
test_db/schema.json Normal file
View File

@@ -0,0 +1,24 @@
{
"version": 1,
"timestamp": 1760032965,
"checksum": "928ea259547899e3e7e8c48bb815d3fa27c1ed93d075a6d573bdb66afd5ca91e",
"schema": {
"Name": "test",
"Fields": [
{
"Name": "name",
"Type": 13,
"Indexed": false,
"Nullable": false,
"Comment": "用户名"
},
{
"Name": "age",
"Type": 5,
"Indexed": false,
"Nullable": false,
"Comment": "年龄"
}
]
}
}

1
test_db/wal/CURRENT Normal file
View File

@@ -0,0 +1 @@
21