connection

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 9 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
	Postgres  map[string]*postgres.Client
	MsSQL     map[string]*mssql.DB
	// contains filtered or unexported fields
}

func NewManagerFromConfig

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

func (*Manager) AddBqConnectionFromConfig

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

func (*Manager) AddMsSQLConnectionFromConfig added in v0.5.6

func (m *Manager) AddMsSQLConnectionFromConfig(connection *config.MsSQLConnection) error

func (*Manager) AddPgConnectionFromConfig added in v0.5.0

func (m *Manager) AddPgConnectionFromConfig(connection *config.PostgresConnection) 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) GetBqConnectionWithoutDefault added in v0.4.3

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

func (*Manager) GetConnection

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

func (*Manager) GetMsConnection added in v0.5.6

func (m *Manager) GetMsConnection(name string) (mssql.MsClient, error)

func (*Manager) GetMsConnectionWithoutDefault added in v0.5.6

func (m *Manager) GetMsConnectionWithoutDefault(name string) (mssql.MsClient, error)

func (*Manager) GetPgConnection added in v0.5.0

func (m *Manager) GetPgConnection(name string) (postgres.PgClient, error)

func (*Manager) GetPgConnectionWithoutDefault added in v0.5.0

func (m *Manager) GetPgConnectionWithoutDefault(name string) (postgres.PgClient, error)

func (*Manager) GetSfConnection added in v0.2.0

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

func (*Manager) GetSfConnectionWithoutDefault added in v0.4.3

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

Jump to

Keyboard shortcuts

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