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

redshiftdata

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package redshiftdata emulates the Amazon Redshift Data API over JSON 1.1. Statements run in the background on the PostgreSQL container of a Redshift cluster or Redshift Serverless workgroup, as its admin user or the user of a Secrets Manager secret. :name parameters become literals the server casts, as Redshift's do, and the Redshift-only DDL clauses PostgreSQL lacks are dropped.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service is the Redshift Data API emulator.

func New

func New(hub *core.Hub) *Service

New creates the Redshift Data API service.

func (*Service) Close

func (s *Service) Close() error

Close cancels the running statements.

func (*Service) Info

func (s *Service) Info() core.Info

func (*Service) Inspect

func (s *Service) Inspect(table, id string) any

Inspect returns a statement as DescribeStatement shows it.

func (*Service) Load

func (s *Service) Load([]byte) error

func (*Service) Reset

func (s *Service) Reset()

func (*Service) Resources

func (s *Service) Resources() []core.Table

Resources lists statements for the console, newest first.

func (*Service) Save

func (s *Service) Save() ([]byte, error)

Save and Load keep nothing: statements and their results live in memory. ponytail: AWS keeps them a day; persist them if restarts lose ones you need.

func (*Service) ServeHTTP

func (s *Service) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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