MCPcopy Create free account
hub / github.com/53AI/53AIHub / SetOperationData

Method SetOperationData

api/model/chunk_operation_log.go:76–83  ·  view source on GitHub ↗

SetOperationData 设置操作数据

(data *OperationData)

Source from the content-addressed store, hash-verified

74
75// SetOperationData 设置操作数据
76func (col *ChunkOperationLog) SetOperationData(data *OperationData) error {
77 jsonData, err := json.Marshal(data)
78 if err != nil {
79 return err
80 }
81 col.OperationData = string(jsonData)
82 return nil
83}
84
85// GetAffectedChunks 获取受影响的分块ID列表
86func (col *ChunkOperationLog) GetAffectedChunks() (AffectedChunksData, error) {

Callers 7

recordVectorCleanupLogFunction · 0.95
CreateAutoChunkLogFunction · 0.95
CreateMergeLogFunction · 0.95
CreateSplitLogFunction · 0.95
CreateEditLogFunction · 0.95
CreateSyncLogFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected