Help us shape the future of Go! Take the 2026 Go Developer Survey

redshift

package
v1.35.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func GoquDialectOptions added in v1.10.0

func GoquDialectOptions() *sqlgen.SQLDialectOptions

func GoquExpressions added in v1.10.0

func GoquExpressions() *base.Expressions

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"`

	RoleARN       string        `json:"roleARN"`
	ExternalID    string        `json:"externalID"`
	RoleARNExpiry time.Duration `json:"roleARNExpiry"` // default: 15m

	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

func (*DB) ListSchemas added in v1.13.0

func (db *DB) ListSchemas(ctx context.Context, opts ...sqlconnect.Option) ([]sqlconnect.SchemaRef, error)

type DialectConfig added in v1.23.0

type DialectConfig struct {
	EnableCaseSensitiveIdentifier bool `json:"enableCaseSensitiveIdentifier"`
}

DialectConfig is the configuration for a redshift dialect

func (*DialectConfig) Parse added in v1.23.0

func (dc *DialectConfig) Parse(configJSON json.RawMessage) error

Parse parses the given JSON into the config

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