snowflake

package
v0.2.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const SPNApplicationId = "SYNQ_Platform"

https://github.com/snowflakedb/gosnowflake/blob/099708d318689634a558f705ccc19b3b7b278972/doc.go#L107

Variables

This section is empty.

Functions

func NewQuerier

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

Types

type Executor

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

type Mock

type Mock struct {
	SnowflakeExecutor
	// contains filtered or unexported fields
}

func (*Mock) QueryRows

func (bq *Mock) QueryRows(ctx context.Context, q string, args ...interface{}) (*sqlx.Rows, error)

type SnowflakeConf

type SnowflakeConf struct {
	User       string
	Password   string
	PrivateKey []byte
	Account    string
	Warehouse  string
	Databases  []string
	Role       string
}

type SnowflakeExecutor

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

func NewSnowflakeExecutor

func NewSnowflakeExecutor(ctx context.Context, conf *SnowflakeConf) (*SnowflakeExecutor, error)

func (*SnowflakeExecutor) Close

func (e *SnowflakeExecutor) Close() error

func (*SnowflakeExecutor) Exec

func (e *SnowflakeExecutor) Exec(ctx context.Context, sql string) error

func (*SnowflakeExecutor) GetDb

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

func (*SnowflakeExecutor) QueryRows

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

Jump to

Keyboard shortcuts

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