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

Function DBFindWindowForWorkspaceId

pkg/wstore/wstore_dbops.go:412–419  ·  view source on GitHub ↗
(ctx context.Context, workspaceId string)

Source from the content-addressed store, hash-verified

410}
411
412func DBFindWindowForWorkspaceId(ctx context.Context, workspaceId string) (string, error) {
413 return WithTxRtn(ctx, func(tx *TxWrap) (string, error) {
414 query := `
415 SELECT w.oid
416 FROM db_window w WHERE json_extract(data, '$.workspaceid') = ?`
417 return tx.GetString(query, workspaceId), nil
418 })
419}

Callers 4

BlocksListCommandMethod · 0.92
determineScopesFunction · 0.92
DeleteWorkspaceFunction · 0.92
DeleteTabFunction · 0.92

Calls 2

GetStringMethod · 0.80
WithTxRtnFunction · 0.70

Tested by

no test coverage detected