db

package
v0.0.0-...-2fbd0e4 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadData

func LoadData(dbConn *PostgresConnection, schema string, table string) ([]map[string]interface{}, error)

Types

type GCSUploader

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

func NewGCSUploader

func NewGCSUploader(cfg struct {
	ProjectID       string
	BucketName      string
	CredentialsFile string
}) (*GCSUploader, error)

func (*GCSUploader) Upload

func (uploader *GCSUploader) Upload(data []map[string]interface{}) error

type PostgresConnection

type PostgresConnection struct {
	Pool *pgxpool.Pool
}

func NewPostgresConnection

func NewPostgresConnection(cfg config.PostgresConfig) (*PostgresConnection, error)

func (*PostgresConnection) Close

func (pc *PostgresConnection) Close(ctx context.Context)

Jump to

Keyboard shortcuts

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