trino

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQuerier

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

Types

type Executor

type Executor interface {
	stdsql.StdSqlExecutor
}

type TrinoConf

type TrinoConf struct {
	Host     string
	Port     int
	User     string
	Password string
	Catalog  string
	Schema   string
	Source   string // optional, e.g. "synq"
}

type TrinoExecutor

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

func NewTrinoExecutor

func NewTrinoExecutor(ctx context.Context, conf *TrinoConf) (*TrinoExecutor, error)

func (*TrinoExecutor) Close

func (e *TrinoExecutor) Close() error

func (*TrinoExecutor) Exec

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

func (*TrinoExecutor) GetDb

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

func (*TrinoExecutor) QueryRows

func (e *TrinoExecutor) 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