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

Method Close

datasource/sqlite/source.go:150–159  ·  view source on GitHub ↗

Close this source, closing the underlying sqlite db file

()

Source from the content-addressed store, hash-verified

148
149// Close this source, closing the underlying sqlite db file
150func (m *Source) Close() error {
151 if m.db != nil {
152 err := m.db.Close()
153 if err != nil {
154 return err
155 }
156 m.db = nil
157 }
158 return nil
159}
160
161func tableFromSQL(name, sqls string) *schema.Table {
162 t := schema.NewTable(name)

Callers

nothing calls this directly

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected