warehouse

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// TODO this is a convenient but not ideal interface. It pulls all the
	// results back into memory and it's better to stream!
	Run(string) (Records, error)
}

type Record

type Record map[string]interface{}

type Records

type Records []Record

type SnowflakeClient

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

func NewSnowflake

func NewSnowflake() *SnowflakeClient

func (*SnowflakeClient) Connect

func (sc *SnowflakeClient) Connect(sfc SnowflakeCredentials) error

func (*SnowflakeClient) Run

func (sc *SnowflakeClient) Run(query string) (Records, error)

type SnowflakeCredentials

type SnowflakeCredentials struct {
	AccountId string `json:"account_id"`
	User      string `json:"user"`
	Password  string `json:"password"`
	Database  string `json:"database"`
	Schema    string `json:"schema"`
	Warehouse string `json:"warehouse"`
}

func (SnowflakeCredentials) ConnString

func (sfc SnowflakeCredentials) ConnString() (string, error)

Jump to

Keyboard shortcuts

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