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"`
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
type 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
type PostgresConfig ¶ added in v1.1.0
PostgresConfig is the configuration for a redshift database when using the postgres driver
Source Files
¶
Click to show internal directories.
Click to hide internal directories.