connection

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	BigQuery  map[string]*bigquery.Client
	Snowflake map[string]*snowflake.DB
}

func NewManagerFromConfig

func NewManagerFromConfig(cm *config.Config) (*Manager, error)

func (*Manager) AddBqConnectionFromConfig

func (m *Manager) AddBqConnectionFromConfig(connection *config.GoogleCloudPlatformConnection) error

func (*Manager) AddSfConnectionFromConfig added in v0.2.0

func (m *Manager) AddSfConnectionFromConfig(connection *config.SnowflakeConnection) error

func (*Manager) GetBqConnection

func (m *Manager) GetBqConnection(name string) (bigquery.DB, error)

func (*Manager) GetConnection

func (m *Manager) GetConnection(name string) (interface{}, error)

func (*Manager) GetSfConnection added in v0.2.0

func (m *Manager) GetSfConnection(name string) (snowflake.SfClient, error)

Jump to

Keyboard shortcuts

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