Documentation ¶
Index ¶
- type Conn
- type Iterator
- type Query
- type Response
- func (rsp *Response) AppStatus() int
- func (rsp *Response) AppStatusString() string
- func (rsp *Response) ClusterLatency() int
- func (rsp *Response) GoString() string
- func (rsp *Response) ResultSets() []Table
- func (rsp *Response) Status() Status
- func (rsp *Response) StatusString() string
- func (rsp *Response) Table(offset int) *Table
- type Status
- type Table
- func (table *Table) ColumnCount() int
- func (table *Table) ColumnNames() []string
- func (table *Table) ColumnTypes() []int8
- func (table *Table) GoString() string
- func (table *Table) HasNext() bool
- func (table *Table) Next(v interface{}) error
- func (table *Table) RowCount() int
- func (table *Table) StatusCode() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn is a single connection to a single node of a VoltDB database
func NewConnection ¶
NewConn creates an initialized, authenticated Conn.
func (*Conn) Call ¶
Call invokes the procedure 'procedure' with parameter values 'params' and returns a pointer to the received Response.
func (*Conn) Close ¶
Close a connection if open. A Conn, once closed, has no further use. To open a new connection, use NewConnection.
func (*Conn) Query ¶
Like Call, but return a Call header response rather than a full response. Keeps connection open to read the rest at your leisure.
func (*Conn) TestConnection ¶
Ping the database for liveness.
type Iterator ¶
type Iterator struct { Err error // contains filtered or unexported fields }
Iterator iterates over each row in a Query response.
func (*Iterator) All ¶
Read all items from an Iterator until the query response ends. Expects a *[]struct{} as a parameter. Will panic if interface{} passed in is not a slice. Automatically closes the iterator once the end of the Query response is reached.
func (*Iterator) Next ¶
Read an individual row from an iterator and store it in the struct passed in. Will return true for as long as there is a next value available in the iterator so that it can be called using 'for iterator.Next(&struct{}) {}'. Automatically closes the iterator once the end of the Query response is reached.
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
Query wraps Response and keeps the connection reader open to read at your own pace.
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
Response is a stored procedure result.
func (*Response) AppStatusString ¶
func (*Response) ClusterLatency ¶
func (*Response) ResultSets ¶
func (*Response) StatusString ¶
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
Table represents a single result set for a stored procedure invocation.