configuration

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadConfig

func ReadConfig() (map[string]*Connection, error)

Types

type ConfigToml

type ConfigToml struct {
	DefaultConnectionName string `toml:"default_connection_name"`
}

type Connection

type Connection struct {
	Account       string `toml:"account"`
	User          string `toml:"user"`
	Password      string `toml:"password"`
	Authenticator string `toml:"authenticator"`
	Warehouse     string `toml:"warehouse"`
	Rolename      string `toml:"rolename"`
	Database      string `toml:"database"`
	Schema        string `toml:"schema"`
}

func (*Connection) SnowflakeConfig

func (c *Connection) SnowflakeConfig() *sf.Config

type ConnectionsToml

type ConnectionsToml struct {
	Connections map[string]Connection `toml:"connections"`
}

Jump to

Keyboard shortcuts

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