MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / DBGet

Function DBGet

pkg/wstore/wstore_dbops.go:133–136  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

131}
132
133func DBGet[T waveobj.WaveObj](ctx context.Context, id string) (T, error) {
134 rtn, err := DBGetORef(ctx, waveobj.ORef{OType: getOTypeGen[T](), OID: id})
135 return genericCastWithErr[T](rtn, err)
136}
137
138func DBMustGet[T waveobj.WaveObj](ctx context.Context, id string) (T, error) {
139 rtn, err := DBGetORef(ctx, waveobj.ORef{OType: getOTypeGen[T](), OID: id})

Callers 15

GetTabCommandMethod · 0.92
resolveBlockFunction · 0.92
GetWindowMethod · 0.92
GetWorkspaceMethod · 0.92
CloseTabMethod · 0.92
GetTabMethod · 0.92
GetJobManagerStatusFunction · 0.92
GetBlockJobStatusFunction · 0.92
handleRouteEventFunction · 0.92
handleAppendJobFileFunction · 0.92
IsBlockIdTermDurableFunction · 0.92
DetachJobFromBlockFunction · 0.92

Calls 1

DBGetORefFunction · 0.85

Tested by

no test coverage detected