Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotSupported = errors.New("not supported") ErrDSNEmpty = errors.New("dsn is empty") ErrConnClosed = errors.New("connection closed") ErrBeforeCommit = errors.New("transaction is not committed") ErrNotInTx = errors.New("not in transaction") ErrInTx = errors.New("already in transaction") )
View Source
var RedshiftDataClientConstructor func(ctx context.Context, cfg *RedshiftDataConfig) (RedshiftDataClient, error)
Functions ¶
func SetDebugLogger ¶
Types ¶
type RedshiftDataClient ¶
type RedshiftDataClient interface { ExecuteStatement(ctx context.Context, params *redshiftdata.ExecuteStatementInput, optFns ...func(*redshiftdata.Options)) (*redshiftdata.ExecuteStatementOutput, error) DescribeStatement(ctx context.Context, params *redshiftdata.DescribeStatementInput, optFns ...func(*redshiftdata.Options)) (*redshiftdata.DescribeStatementOutput, error) CancelStatement(ctx context.Context, params *redshiftdata.CancelStatementInput, optFns ...func(*redshiftdata.Options)) (*redshiftdata.CancelStatementOutput, error) BatchExecuteStatement(ctx context.Context, params *redshiftdata.BatchExecuteStatementInput, optFns ...func(*redshiftdata.Options)) (*redshiftdata.BatchExecuteStatementOutput, error) redshiftdata.GetStatementResultAPIClient }
func DefaultRedshiftDataClientConstructor ¶
func DefaultRedshiftDataClientConstructor(ctx context.Context, cfg *RedshiftDataConfig) (RedshiftDataClient, error)
type RedshiftDataConfig ¶
type RedshiftDataConfig struct { ClusterIdentifier *string Database *string DbUser *string WorkgroupName *string SecretsARN *string Timeout time.Duration Polling time.Duration Params url.Values RedshiftDataOptFns []func(*redshiftdata.Options) }
func ParseDSN ¶
func ParseDSN(dsn string) (*RedshiftDataConfig, error)
func (*RedshiftDataConfig) String ¶
func (cfg *RedshiftDataConfig) String() string
func (*RedshiftDataConfig) WithRegion ¶
func (cfg *RedshiftDataConfig) WithRegion(region string) *RedshiftDataConfig
Click to show internal directories.
Click to hide internal directories.