MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / handleConn

Method handleConn

cmd/cql-mysql-adapter/server.go:62–76  ·  view source on GitHub ↗
(conn net.Conn)

Source from the content-addressed store, hash-verified

60}
61
62func (s *Server) handleConn(conn net.Conn) {
63 h, err := mys.NewConn(conn, s.mysqlUser, s.mysqlPassword, NewCursor(s))
64
65 if err != nil {
66 log.WithError(err).Error("process connection failed")
67 return
68 }
69
70 for {
71 err = h.HandleCommand()
72 if err != nil {
73 return
74 }
75 }
76}
77
78// Shutdown ends the server.
79func (s *Server) Shutdown() {

Callers 1

ServeMethod · 0.95

Calls 3

WithErrorFunction · 0.92
NewCursorFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected