Documentation ¶
Overview ¶
Package avatica provides an Apache Phoenix Query Server/Avatica driver for Go's database/sql package.
Quickstart ¶
Import the database/sql package along with the avatica driver.
import "database/sql" import _ "github.com/apache/calcite-avatica-go/v4" db, err := sql.Open("avatica", "http://phoenix-query-server:8765")
See https://calcite.apache.org/avatica/go_client_reference.html for more details
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHTTPClient ¶
NewHTTPClient creates a new httpClient from a host.
Types ¶
type Adapter ¶
type Adapter interface { GetPingStatement() string GetColumnTypeDefinition(*message.ColumnMetaData) *internal.Column ErrorResponseToResponseError(*message.ErrorResponse) errors.ResponseError }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.