redshift

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DatabaseType = "redshift"
)
View Source
const RedshiftDataConfigType = "redshift-data"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ClusterIdentifier string `json:"clusterIdentifier"`
	Database          string `json:"database"`
	User              string `json:"user"`
	Region            string `json:"region"`
	WorkgroupName     string `json:"workgroupName"`

	SecretsARN string `json:"secretsARN"`

	SharedConfigProfile string `json:"sharedConfigProfile"`

	AccessKeyID     string `json:"accessKeyId"`
	SecretAccessKey string `json:"secretAccessKey"`
	SessionToken    string `json:"sessionToken"`

	Timeout          time.Duration `json:"timeout"`          // default: no timeout
	MinPolling       time.Duration `json:"minPolling"`       // default: 10ms
	MaxPolling       time.Duration `json:"maxPolling"`       // default: 5s
	RetryMaxAttempts int           `json:"retryMaxAttempts"` // default: 20

	UseLegacyMappings bool `json:"useLegacyMappings"`
}

Config is the configuration for a redshift database when using the redshift data api driver

func (*Config) MarshalJSON added in v1.1.0

func (c *Config) MarshalJSON() ([]byte, error)

func (*Config) Parse added in v1.1.0

func (c *Config) Parse(input json.RawMessage) error

type DB

type DB struct {
	*base.DB
}

func NewDB

func NewDB(credentialsJSON json.RawMessage) (*DB, error)

NewDB creates a new redshift db client

type PostgresConfig added in v1.1.0

type PostgresConfig = postgres.Config

PostgresConfig is the configuration for a redshift database when using the postgres driver

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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