Documentation ¶
Index ¶
- Constants
- type Config
- type Conn
- func (c Conn) PrepareRow(sql string, values ...interface{}) ([]string, error)
- func (c Conn) PrepareRows(sql string, values ...interface{}) ([][]string, error)
- func (c Conn) QueryRow(sql string) ([]string, error)
- func (c Conn) QueryRows(sql string) ([][]string, error)
- func (c Conn) ReadFrame() ([]byte, bool, error)
- func (c Conn) ReadResult() (Result, error)
- func (c Conn) Send(parts ...string) error
- type EmptyResult
- type Error
- type Meta
- type OKResult
- type PrepareResult
- type QueryResult
- func (r *QueryResult) Columns() []string
- func (r *QueryResult) IsSimple() (bool, string)
- func (r *QueryResult) Lengths() []int
- func (r *QueryResult) Maps() ([]map[string]string, error)
- func (r *QueryResult) Meta() *Meta
- func (r *QueryResult) Next() ([][]string, error)
- func (r *QueryResult) Rows() ([][]string, error)
- func (r *QueryResult) Types() []string
- type Result
- type SimpleResult
- func (_ SimpleResult) Columns() []string
- func (_ SimpleResult) Lengths() []int
- func (_ SimpleResult) Maps() ([]map[string]string, error)
- func (r SimpleResult) Meta() *Meta
- func (_ SimpleResult) Next() ([][]string, error)
- func (_ SimpleResult) Rows() ([][]string, error)
- func (_ SimpleResult) Types() []string
Constants ¶
View Source
const ( DRIVER_ERROR = "driver" MONETDB_ERROR = "monetdb" NETWORK_ERROR = "network" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
func (Conn) PrepareRow ¶
func (Conn) PrepareRows ¶
func (Conn) ReadFrame ¶
Exposed since we want to be able to "stream" the output using various transformers (raw, expanded, ...) Note that the buffer remains owned by the connection - callers should copy it if they need it to survive the next call to ReadFrame (or any other calls involving the connection)
func (Conn) ReadResult ¶
type EmptyResult ¶
type EmptyResult struct{ SimpleResult }
func (EmptyResult) IsSimple ¶
func (r EmptyResult) IsSimple() (bool, string)
type OKResult ¶
type OKResult struct{ SimpleResult }
type PrepareResult ¶
type PrepareResult struct { SimpleResult // contains filtered or unexported fields }
func (PrepareResult) IsSimple ¶
func (r PrepareResult) IsSimple() (bool, string)
type QueryResult ¶
type QueryResult struct {
// contains filtered or unexported fields
}
TODO: this should probably be an interface that can return data based on the type of result.
func (*QueryResult) Columns ¶
func (r *QueryResult) Columns() []string
func (*QueryResult) IsSimple ¶
func (r *QueryResult) IsSimple() (bool, string)
func (*QueryResult) Lengths ¶
func (r *QueryResult) Lengths() []int
func (*QueryResult) Meta ¶
func (r *QueryResult) Meta() *Meta
func (*QueryResult) Next ¶
func (r *QueryResult) Next() ([][]string, error)
func (*QueryResult) Rows ¶
func (r *QueryResult) Rows() ([][]string, error)
func (*QueryResult) Types ¶
func (r *QueryResult) Types() []string
type SimpleResult ¶
type SimpleResult struct {
// contains filtered or unexported fields
}
func (SimpleResult) Columns ¶
func (_ SimpleResult) Columns() []string
func (SimpleResult) Lengths ¶
func (_ SimpleResult) Lengths() []int
func (SimpleResult) Meta ¶
func (r SimpleResult) Meta() *Meta
func (SimpleResult) Next ¶
func (_ SimpleResult) Next() ([][]string, error)
func (SimpleResult) Rows ¶
func (_ SimpleResult) Rows() ([][]string, error)
func (SimpleResult) Types ¶
func (_ SimpleResult) Types() []string
Click to show internal directories.
Click to hide internal directories.