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

Function dbGetZoneFiles

pkg/filestore/blockstore_dbops.go:86–92  ·  view source on GitHub ↗
(ctx context.Context, zoneId string)

Source from the content-addressed store, hash-verified

84}
85
86func dbGetZoneFiles(ctx context.Context, zoneId string) ([]*WaveFile, error) {
87 return WithTxRtn(ctx, func(tx *TxWrap) ([]*WaveFile, error) {
88 query := "SELECT * FROM db_wave_file WHERE zoneid = ?"
89 files := dbutil.SelectMappable[*WaveFile](tx, query, zoneId)
90 return files, nil
91 })
92}
93
94func dbWriteCacheEntry(ctx context.Context, file *WaveFile, dataEntries map[int]*DataCacheEntry, replace bool) error {
95 return WithTx(ctx, func(tx *TxWrap) error {

Callers 1

ListFilesMethod · 0.85

Calls 1

WithTxRtnFunction · 0.70

Tested by

no test coverage detected