ha

package
v0.24.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(client ...Querier) *Client

New creates a new HA query client, and takes a list of rockset.RockClient which will be used for running queries in parallel.

func (*Client) Query

func (ha *Client) Query(ctx context.Context, query string,
	options ...option.QueryOption) (openapi.QueryResponse, []error)

Query executes a SQL query in parallel, and returns the first response.

type Querier

type Querier interface {
	Query(context.Context, string, ...option.QueryOption) (openapi.QueryResponse, error)
}

Querier is an interface implemented by the rockset.RockClient

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL