MCPcopy Create free account
hub / github.com/araddon/qlbridge / Close

Method Close

datasource/csv.go:133–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131}
132
133func (m *CsvDataSource) Close() error {
134 defer func() {
135 if r := recover(); r != nil {
136 u.Errorf("close error: %v", r)
137 }
138 }()
139 if m.gz != nil {
140 m.gz.Close()
141 }
142 if m.rc != nil {
143 m.rc.Close()
144 }
145 return nil
146}
147
148func (m *CsvDataSource) Next() schema.Message {
149 select {

Callers

nothing calls this directly

Calls 2

ErrorfMethod · 0.80
CloseMethod · 0.65

Tested by

no test coverage detected