driver

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const DriverName string = "athena"

Variables

This section is empty.

Functions

func New added in v1.0.2

func New(dsAPI sqlAPI.AWSAPI) (sqlDriver.Driver, error)

New registers a new driver with a unique name

Types

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

Driver is a sql.Driver

func (*Driver) Closed

func (d *Driver) Closed() bool

func (*Driver) Open

func (d *Driver) Open(_ string) (driver.Conn, error)

Open returns a new driver.Conn using already existing settings

func (*Driver) OpenDB added in v1.0.2

func (d *Driver) OpenDB() (*sql.DB, error)

type Rows

type Rows struct {
	*drv.Rows
}

func NewRows

func NewRows(ctx context.Context, athenaAPI athenaiface.AthenaAPI, queryID string) (*Rows, error)

func (*Rows) ColumnTypeScanType

func (r *Rows) ColumnTypeScanType(index int) reflect.Type

ColumnTypeScanType returns the value type that can be used to scan types into. For example, the database column type "bigint" this should return "reflect.TypeOf(int64(0))"

Jump to

Keyboard shortcuts

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