recordriver

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 5 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Session

func Session(name string) (*session, bool)

Session returns the session with the given name and reports whether it exists.

func SetResponse

func SetResponse(s string, query string, resp *Response)

SetResponse sets the response for the given session and query.

Types

type Response

type Response struct {
	Cols []string
	Data [][]driver.Value
}

Response is a response to a query.

func (*Response) Close

func (*Response) Close() error

Close closes the rows iterator. It is a noop.

func (*Response) Columns

func (r *Response) Columns() []string

Columns returns the names of the columns in the result set.

func (*Response) Next

func (r *Response) Next(dest []driver.Value) error

Next is called to populate the next row of data into the provided slice.

Jump to

Keyboard shortcuts

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