Documentation
¶
Index ¶
- func New(ctx context.Context, sessionCache *awsds.SessionCache, ...) (api.AWSAPI, error)
- type API
- func (c *API) CancelQuery(ctx context.Context, options sqlds.Options, queryID string) error
- func (c *API) Clusters() ([]models.RedshiftCluster, error)
- func (c *API) Columns(ctx aws.Context, options sqlds.Options) ([]string, error)
- func (c *API) Databases(ctx aws.Context, options sqlds.Options) ([]string, error)
- func (c *API) Execute(ctx context.Context, input *api.ExecuteQueryInput) (*api.ExecuteQueryOutput, error)
- func (c *API) GetQueryID(ctx context.Context, query string, args ...interface{}) (bool, string, error)
- func (c *API) Regions(aws.Context) ([]string, error)
- func (c *API) Schemas(ctx aws.Context, options sqlds.Options) ([]string, error)
- func (c *API) Secret(ctx aws.Context, options sqlds.Options) (*models.RedshiftSecret, error)
- func (c *API) Secrets(ctx aws.Context) ([]models.ManagedSecret, error)
- func (c *API) Status(ctx aws.Context, output *api.ExecuteQueryOutput) (*api.ExecuteQueryStatus, error)
- func (c *API) Stop(output *api.ExecuteQueryOutput) error
- func (c *API) Tables(ctx aws.Context, options sqlds.Options) ([]string, error)
- func (c *API) Workgroups() ([]models.RedshiftWorkgroup, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
type API struct { DataClient redshiftdataapiserviceiface.RedshiftDataAPIServiceAPI SecretsClient secretsmanageriface.SecretsManagerAPI ManagementClient redshiftiface.RedshiftAPI ServerlessManagementClient redshiftserverlessiface.RedshiftServerlessAPI // contains filtered or unexported fields }
func (*API) CancelQuery ¶ added in v1.4.0
func (*API) Execute ¶
func (c *API) Execute(ctx context.Context, input *api.ExecuteQueryInput) (*api.ExecuteQueryOutput, error)
func (*API) GetQueryID ¶ added in v1.4.0
func (c *API) GetQueryID(ctx context.Context, query string, args ...interface{}) (bool, string, error)
GetQueryID always returns not found. To actually check if the query has been called requires calling ListStatements, which can lead to timeouts when there are many statements to page through
func (*API) Status ¶ added in v1.0.2
func (c *API) Status(ctx aws.Context, output *api.ExecuteQueryOutput) (*api.ExecuteQueryStatus, error)
func (*API) Workgroups ¶ added in v1.10.0
func (c *API) Workgroups() ([]models.RedshiftWorkgroup, error)
Click to show internal directories.
Click to hide internal directories.