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

Method CloseConn

IceFireDB-SQLite/internal/mysql/handle.go:14–20  ·  view source on GitHub ↗
(c *server.Conn)

Source from the content-addressed store, hash-verified

12)
13
14func (h *mysqlProxy) CloseConn(c *server.Conn) error {
15 if c.IsInTransaction() || c.IsAutoCommit() {
16 _, err := sqlite.Exec("COMMIT")
17 return err
18 }
19 return nil
20}
21
22func (h *mysqlProxy) UseDB(c *server.Conn, dbName string) error {
23 log.Println(dbName)

Callers

nothing calls this directly

Calls 3

ExecFunction · 0.92
IsInTransactionMethod · 0.45
IsAutoCommitMethod · 0.45

Tested by

no test coverage detected