redshift

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier[T any](conn *RedshiftExecutor) querier.Querier[T]

Types

type Executor

type Executor interface {
	stdsql.StdSqlExecutor
	QueryRows(ctx context.Context, q string, args ...interface{}) (*sqlx.Rows, error)
}

type RedshiftConf

type RedshiftConf struct {
	User      string
	Password  string
	Database  string
	Host      string
	Port      int
	SSHTunnel *sshtunnel.SshTunnel
}

type RedshiftExecutor

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

func NewRedshiftExecutor

func NewRedshiftExecutor(ctx context.Context, conf *RedshiftConf) (*RedshiftExecutor, error)

func (*RedshiftExecutor) Close

func (e *RedshiftExecutor) Close() error

func (*RedshiftExecutor) Exec

func (e *RedshiftExecutor) Exec(ctx context.Context, q string) error

func (*RedshiftExecutor) GetDb

func (e *RedshiftExecutor) GetDb() *sqlx.DB

func (*RedshiftExecutor) QueryRows

func (e *RedshiftExecutor) QueryRows(ctx context.Context, sql string, args ...interface{}) (*sqlx.Rows, error)

Jump to

Keyboard shortcuts

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