snowflake

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: Apache-2.0 Imports: 11 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 struct {
	// contains filtered or unexported fields
}
var (
	Sfclient *Client
)

func GetClient

func GetClient() (*Client, error)

func NewClient

func NewClient(_ context.Context, config *ClientConfig) (*Client, error)

func (*Client) DeleteFilesFromStage

func (c *Client) DeleteFilesFromStage(ctx context.Context,
	roleName, databaseName, schemaName, stageName string, files []string) error

func (*Client) GetRole

func (c *Client) GetRole() string

func (*Client) ListFilesFromStage

func (c *Client) ListFilesFromStage(ctx context.Context, roleName, databaseName,
	schemaName, stageName string, resources any) error

func (*Client) Ping

func (c *Client) Ping(ctx context.Context) error

func (*Client) Put

func (c *Client) Put(ctx context.Context, roleName, filePath, databaseName,
	schemaName, stageName, subpath string, resources any) error

Put facilitates uploading files to the internal stage resource

type ClientConfig

type ClientConfig struct {
	gosnowflake.Config
}

type UploadedFileStatus

type UploadedFileStatus struct {
	Source string `db:"source"`
	Target string `db:"target"`
	Status string `db:"status"`
}

Jump to

Keyboard shortcuts

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