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

Method Open

datasource/csv.go:121–131  ·  view source on GitHub ↗
(connInfo string)

Source from the content-addressed store, hash-verified

119 return nil
120}
121func (m *CsvDataSource) Open(connInfo string) (schema.Conn, error) {
122 if connInfo == "stdio" || connInfo == "stdin" {
123 connInfo = "/dev/stdin"
124 }
125 f, err := os.Open(connInfo)
126 if err != nil {
127 return nil, err
128 }
129 exit := make(<-chan bool, 1)
130 return NewCsvSource(connInfo, 0, f, exit)
131}
132
133func (m *CsvDataSource) Close() error {
134 defer func() {

Callers

nothing calls this directly

Calls 2

NewCsvSourceFunction · 0.85
OpenMethod · 0.65

Tested by

no test coverage detected