Query calls Query on the current connection.
(ctx context.Context, sql string, args ...any)
| 931 | |
| 932 | // Query calls Query on the current connection. |
| 933 | func (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. |
| 941 | func (conn *Connection) Close(ctx context.Context) { |
no outgoing calls