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

Function dbGetZoneFileNames

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

Source from the content-addressed store, hash-verified

37}
38
39func dbGetZoneFileNames(ctx context.Context, zoneId string) ([]string, error) {
40 return WithTxRtn(ctx, func(tx *TxWrap) ([]string, error) {
41 var files []string
42 query := "SELECT name FROM db_wave_file WHERE zoneid = ?"
43 tx.Select(&files, query, zoneId)
44 return files, nil
45 })
46}
47
48func dbGetZoneFile(ctx context.Context, zoneId string, name string) (*WaveFile, error) {
49 return WithTxRtn(ctx, func(tx *TxWrap) (*WaveFile, error) {

Callers 1

DeleteZoneMethod · 0.85

Calls 1

WithTxRtnFunction · 0.70

Tested by

no test coverage detected