文档:更新 DESIGN.md,使用英文注释和调整项目结构说明

This commit is contained in:
2025-10-09 01:33:22 +08:00
parent 6499464f1c
commit 8019f2d794
38 changed files with 4297 additions and 2750 deletions

View File

@@ -4,7 +4,7 @@ import (
"fmt"
"log"
"code.tczkiot.com/srdb"
"code.tczkiot.com/wlw/srdb"
)
// CheckData 检查数据库中的数据

View File

@@ -4,7 +4,7 @@ import (
"fmt"
"log"
"code.tczkiot.com/srdb"
"code.tczkiot.com/wlw/srdb"
)
// CheckSeq 检查特定序列号的数据

View File

@@ -4,7 +4,7 @@ import (
"fmt"
"log"
"code.tczkiot.com/srdb"
"code.tczkiot.com/wlw/srdb"
)
// DumpManifest 导出 manifest 信息
@@ -20,12 +20,11 @@ func DumpManifest(dbPath string) {
log.Fatal(err)
}
engine := table.GetEngine()
versionSet := engine.GetVersionSet()
versionSet := table.GetVersionSet()
version := versionSet.GetCurrent()
// Check for duplicates in each level
for level := 0; level < 7; level++ {
for level := range 7 {
files := version.GetLevel(level)
if len(files) == 0 {
continue

View File

@@ -9,7 +9,7 @@ import (
"strconv"
"strings"
"code.tczkiot.com/srdb"
"code.tczkiot.com/wlw/srdb"
)
// InspectAllSST 检查所有 SST 文件

View File

@@ -5,7 +5,7 @@ import (
"log"
"os"
"code.tczkiot.com/srdb"
"code.tczkiot.com/wlw/srdb"
)
// InspectSST 检查特定 SST 文件

View File

@@ -4,7 +4,7 @@ import (
"fmt"
"log"
"code.tczkiot.com/srdb"
"code.tczkiot.com/wlw/srdb"
)
// TestFix 测试修复

View File

@@ -4,7 +4,7 @@ import (
"fmt"
"log"
"code.tczkiot.com/srdb"
"code.tczkiot.com/wlw/srdb"
)
// TestKeys 测试键

View File

@@ -9,8 +9,8 @@ import (
"slices"
"time"
"code.tczkiot.com/srdb"
"code.tczkiot.com/srdb/webui"
"code.tczkiot.com/wlw/srdb"
"code.tczkiot.com/wlw/srdb/webui"
)
// StartWebUI 启动 WebUI 服务器

View File

@@ -5,7 +5,7 @@ import (
"fmt"
"os"
"code.tczkiot.com/srdb/examples/webui/commands"
"code.tczkiot.com/wlw/srdb/examples/webui/commands"
)
func main() {