MCPcopy Create free account
hub / github.com/apecloud/myduckserver / ComQuery

Method ComQuery

pgserver/handler.go:36–36  ·  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 tree.Statement, callback func(*Result) error)

Source from the content-addressed store, hash-verified

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

Callers 3

ComQueryMethod · 0.65
chooseInitialDatabaseMethod · 0.65
runMethod · 0.65

Implementers 1

DuckHandlerpgserver/duck_handler.go

Calls

no outgoing calls

Tested by

no test coverage detected