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/Boostport/avatica" db, err := sql.Open("avatica", "http://phoenix-query-server:8765")
See https://github.com/Boostport/avatica#usage for more details
Index ¶
Constants ¶
View Source
const ( Eunknown int8 = iota Efatal Eerror Ewarning )
Error severity codes
Variables ¶
This section is empty.
Functions ¶
func NewHTTPClient ¶
func NewHTTPClient(host string) *httpClient
NewHTTPClient creates a new httpClient from a host.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config is a configuration parsed from a DSN string
type RPCMetadata ¶
type RPCMetadata struct {
ServerAddress string
}
RPCMetadata contains metadata about the call that caused the error.
type ResponseError ¶
type ResponseError struct { Exceptions []string HasExceptions bool ErrorMessage string Severity int8 ErrorCode ErrorCode SqlState SQLState Metadata *RPCMetadata }
ResponseError is an error type that contains detailed information on what caused the server to return an error.
func (ResponseError) Error ¶
func (r ResponseError) Error() string
func (ResponseError) Name ¶
func (r ResponseError) Name() string
Name returns the name of the error encountered by the server.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.