utils

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeErrors

func MergeErrors(ctx context.Context, errChans ...<-chan error) <-chan error

func PanicIfErr

func PanicIfErr(err error)

func WaitForPipeline

func WaitForPipeline(ctx context.Context, errs ...<-chan error) error

Types

type Table

type Table struct {
	ColumnNames   []string
	ColumnDBTypes []string
	RowValues     [][]interface{}
}

func QueryReadAll

func QueryReadAll(ctx context.Context, conn *sql.DB, sqlText string, database string, schema string) (*Table, error)

Jump to

Keyboard shortcuts

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