MCPcopy
hub / github.com/wavetermdev/waveterm / SetVersion

Function SetVersion

pkg/waveobj/waveobj.go:208–214  ·  view source on GitHub ↗
(waveObj WaveObj, version int)

Source from the content-addressed store, hash-verified

206}
207
208func SetVersion(waveObj WaveObj, version int) {
209 desc := getWaveObjDesc(waveObj.GetOType())
210 if desc == nil {
211 return
212 }
213 reflect.ValueOf(waveObj).Elem().FieldByIndex(desc.VersionField.Index).SetInt(int64(version))
214}
215
216func GetMeta(waveObj WaveObj) MetaMapType {
217 desc := getWaveObjDesc(waveObj.GetOType())

Callers 6

DBGetSingletonByTypeFunction · 0.92
DBGetORefFunction · 0.92
dbSelectOIDsFunction · 0.92
DBGetAllObjsByTypeFunction · 0.92
DBUpdateFunction · 0.92
DBInsertFunction · 0.92

Calls 2

getWaveObjDescFunction · 0.85
GetOTypeMethod · 0.65

Tested by

no test coverage detected