MCPcopy Create free account
hub / github.com/dolthub/doltgresql / ComQuery

Method ComQuery

server/handler.go:35–35  ·  view source on GitHub ↗

ComQuery is called when a connection receives a query. Note the contents of the query slice may change after the first call to callback. So the DoltgresHandler should not hang on to the byte slice.

(ctx context.Context, c *mysql.Conn, query string, parsed sqlparser.Statement, callback func(*sql.Context, *Result) error)

Source from the content-addressed store, hash-verified

33 // ComQuery is called when a connection receives a query. Note the contents of the query slice may change
34 // after the first call to callback. So the DoltgresHandler should not hang on to the byte slice.
35 ComQuery(ctx context.Context, c *mysql.Conn, query string, parsed sqlparser.Statement, callback func(*sql.Context, *Result) error) error
36 // ComResetConnection resets the connection's session, clearing out any cached prepared statements, locks, user and
37 // session variables. The currently selected database is preserved.
38 ComResetConnection(c *mysql.Conn) error

Callers 2

queryMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected