MCPcopy Index your code
hub / github.com/dnote/dnote / Close

Method Close

pkg/cli/database/sql.go:110–116  ·  view source on GitHub ↗

Close closes a db connection

()

Source from the content-addressed store, hash-verified

108
109// Close closes a db connection
110func (d *DB) Close() error {
111 if db, ok := d.Conn.(closer); ok {
112 return db.Close()
113 }
114
115 return errors.New("can't close db")
116}
117
118// Open initializes a new connection to the sqlite database
119func Open(dbPath string) (*DB, error) {

Callers

nothing calls this directly

Calls 2

NewMethod · 0.80
CloseMethod · 0.65

Tested by

no test coverage detected