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

Method HandleStmtPrepare

IceFireDB-SQLProxy/internal/mysql/handle.go:49–55  ·  view source on GitHub ↗
(c *server.Conn, query string)

Source from the content-addressed store, hash-verified

47}
48
49func (h *Handle) HandleStmtPrepare(c *server.Conn, query string) (int, int, any, error) {
50 stmt, err := h.conn.Prepare(query)
51 if err != nil {
52 return 0, 0, nil, err
53 }
54 return stmt.ParamNum(), stmt.ColumnNum(), stmt, nil
55}
56
57func (h *Handle) HandleStmtExecute(c *server.Conn, context any, query string, args []any) (*mysql.Result, error) {
58 // Check if this is a readonly connection attempting a write

Callers

nothing calls this directly

Calls 3

PrepareMethod · 0.45
ParamNumMethod · 0.45
ColumnNumMethod · 0.45

Tested by

no test coverage detected