redshiftdata

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MIT Imports: 15 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const TypeName = "redshift_data"

Variables

This section is empty.

Functions

func BuildQueryRunner

func BuildQueryRunner(name string, body hcl.Body, ctx *hcl.EvalContext) (queryrunner.QueryRunner, hcl.Diagnostics)

Types

type PreparedQuery

type PreparedQuery struct {
	*queryrunner.QueryBase

	SQL hcl.Expression `hcl:"sql"`
	// contains filtered or unexported fields
}

func (*PreparedQuery) Run

func (q *PreparedQuery) Run(ctx context.Context, variables map[string]cty.Value, functions map[string]function.Function) (*queryrunner.QueryResult, error)

type QueryRunner

type QueryRunner struct {
	ClusterIdentifier *string `hcl:"cluster_identifier"`
	Database          *string `hcl:"database"`
	DbUser            *string `hcl:"db_user"`
	WorkgroupName     *string `hcl:"workgroup_name"`
	SecretsARN        *string `hcl:"secrets_arn"`

	Attrs hcl.Attributes `hcl:",body"`
	// contains filtered or unexported fields
}

func (*QueryRunner) Name

func (r *QueryRunner) Name() string

func (*QueryRunner) Prepare

func (*QueryRunner) RunQuery

func (r *QueryRunner) RunQuery(ctx context.Context, stmtName string, query string) (*queryrunner.QueryResult, error)

func (*QueryRunner) Type

func (r *QueryRunner) Type() string

Jump to

Keyboard shortcuts

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