MCPcopy
hub / github.com/jackc/pgx / RewriteQuery

Method RewriteQuery

conn.go:727–727  ·  view source on GitHub ↗
(ctx context.Context, conn *Conn, sql string, args []any)

Source from the content-addressed store, hash-verified

725// QueryRewriter rewrites a query when used as the first arguments to a query method.
726type QueryRewriter interface {
727 RewriteQuery(ctx context.Context, conn *Conn, sql string, args []any) (newSQL string, newArgs []any, err error)
728}
729
730// Query sends a query to the server and returns a Rows to read the results. Only errors encountered sending the query

Callers 7

execMethod · 0.95
QueryMethod · 0.95
SendBatchMethod · 0.95
TestStructArgsFunction · 0.65
TestStrictStructArgsFunction · 0.65

Implementers 2

testQueryRewriterconn_test.go
errorQueryRewriternamed_args.go

Calls

no outgoing calls

Tested by 4

TestStructArgsFunction · 0.52
TestStrictStructArgsFunction · 0.52