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

Method Query

testing/go/framework.go:933–938  ·  view source on GitHub ↗

Query calls Query on the current connection.

(ctx context.Context, sql string, args ...any)

Source from the content-addressed store, hash-verified

931
932// Query calls Query on the current connection.
933func (conn *Connection) Query(ctx context.Context, sql string, args ...any) (pgx.Rows, error) {
934 if conn.Current == nil {
935 return nil, errors.New("QUERY: current connection is nil")
936 }
937 return conn.Current.Query(ctx, sql, args...)
938}
939
940// Close closes the connections.
941func (conn *Connection) Close(ctx context.Context) {

Callers 15

CaughtUpMethod · 0.45
QueryPostgresFunction · 0.45
runScriptFunction · 0.45
GetRowResultsFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
runReplicationScriptFunction · 0.45
TestIssue2386Function · 0.45
runScriptFunction · 0.45
TestMultipleStatementsFunction · 0.45

Calls

no outgoing calls

Tested by 7

runScriptFunction · 0.36
runReplicationScriptFunction · 0.36
TestIssue2386Function · 0.36
TestMultipleStatementsFunction · 0.36
RunScriptNFunction · 0.36
TestSSLFunction · 0.36