MCPcopy
hub / github.com/go-gorm/gorm / Close

Method Close

prepare_stmt.go:52–59  ·  view source on GitHub ↗

Close closes all prepared statements in the store

()

Source from the content-addressed store, hash-verified

50
51// Close closes all prepared statements in the store
52func (db *PreparedStmtDB) Close() {
53 db.Mux.Lock()
54 defer db.Mux.Unlock()
55
56 for _, key := range db.Stmts.Keys() {
57 db.Stmts.Delete(key)
58 }
59}
60
61// Reset Deprecated use Close instead
62func (db *PreparedStmtDB) Reset() {

Callers 1

ResetMethod · 0.95

Calls 2

KeysMethod · 0.65
DeleteMethod · 0.65

Tested by

no test coverage detected