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

Method Execute

IceFireDB-SQLProxy/pkg/mysql/client/conn.go:171–184  ·  view source on GitHub ↗
(command string, args ...any)

Source from the content-addressed store, hash-verified

169}
170
171func (c *Conn) Execute(command string, args ...any) (*Result, error) {
172 if len(args) == 0 {
173 return c.exec(command)
174 } else {
175 if s, err := c.Prepare(command); err != nil {
176 return nil, errors.Trace(err)
177 } else {
178 var r *Result
179 r, err = s.Execute(args...)
180 s.Close()
181 return r, err
182 }
183 }
184}
185
186// ExecuteSelectStreaming will call perRowCallback for every row in resultset
187//

Callers

nothing calls this directly

Calls 3

execMethod · 0.95
PrepareMethod · 0.95
CloseMethod · 0.95

Tested by

no test coverage detected