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

Method Serve

cmd/cql-mysql-adapter/server.go:51–60  ·  view source on GitHub ↗

Serve starts the server.

()

Source from the content-addressed store, hash-verified

49
50// Serve starts the server.
51func (s *Server) Serve() {
52 for {
53 conn, err := s.listener.Accept()
54 if err != nil {
55 return
56 }
57
58 go s.handleConn(conn)
59 }
60}
61
62func (s *Server) handleConn(conn net.Conn) {
63 h, err := mys.NewConn(conn, s.mysqlUser, s.mysqlPassword, NewCursor(s))

Callers 5

runNodeFunction · 0.95
mainFunction · 0.95
initNodeFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 2

handleConnMethod · 0.95
AcceptMethod · 0.80

Tested by 1

initNodeFunction · 0.36