metasql

package module
v0.0.0-...-8e1b7f2 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

README

Universal sql driver for all kinds of database

goal :

  • Create the SQL driver supporting all kind of sql databases and wareshouses.

Milestone 1 : (Redshift)

  • Add support for Redshift

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RedshiftDataClientConstructor func(ctx context.Context, cfg *cfg.RedshiftDataConfig) (RedshiftDataClient, error)

RedshiftDataClientConstructor is a function signature for creating a RedshiftDataClient The function is expected to return a RedshiftDataClient and an error

Functions

func NewConnection

func NewConnection(client RedshiftDataClient, cfg *cfg.RedshiftDataConfig) *redshiftDataConn

NewConnection returns a new redshiftDataConn instance with the provided RedshiftDataClient and RedshiftDataConfig.

func NewResultWithSubStatementData

func NewResultWithSubStatementData(st types.SubStatementData) *redshiftDataResult

Types

type RedshiftDataClient

RedshiftDataClient is an interface for the RedshiftDataClient It includes the ExecuteStatement, DescribeStatement, CancelStatement, BatchExecuteStatement, and GetStatementResultAPIClient methods

func DefaultRedshiftDataClientConstructor

func DefaultRedshiftDataClientConstructor(ctx context.Context, cfg *cfg.RedshiftDataConfig) (RedshiftDataClient, error)

DefaultRedshiftDataClientConstructor creates a new RedshiftDataClient using the default AWS SDK configuration It uses the AWS SDK's LoadDefaultConfig function to load the default configuration It then creates a new RedshiftDataClient using the configuration and the RedshiftDataOptFns passed in the cfg It returns the RedshiftDataClient and an error

func NewRedshiftDataClient

func NewRedshiftDataClient(ctx context.Context, cfg *cfg.RedshiftDataConfig) (RedshiftDataClient, error)

NewRedshiftDataClient creates a new RedshiftDataClient It uses the RedshiftDataClientConstructor function if it is not nil Otherwise it uses the DefaultRedshiftDataClientConstructor

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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