MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / CloseConn

Method CloseConn

IceFireDB-SQLProxy/internal/mysql/handle.go:16–21  ·  view source on GitHub ↗
(c *server.Conn)

Source from the content-addressed store, hash-verified

14}
15
16func (h *Handle) CloseConn(c *server.Conn) error {
17 if c.IsInTransaction() || c.IsAutoCommit() {
18 return h.conn.Commit()
19 }
20 return nil
21}
22
23func (h *Handle) UseDB(c *server.Conn, dbName string) error {
24 return h.conn.UseDB(dbName)

Callers

nothing calls this directly

Calls 3

IsInTransactionMethod · 0.45
IsAutoCommitMethod · 0.45
CommitMethod · 0.45

Tested by

no test coverage detected