db

package
v0.0.0-...-86d9982 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDBFromConf

func GetDBFromConf(connName string, dbname string) (*sql.DB, error)

func PrintQueryResults

func PrintQueryResults(results *QueryResults, truncate bool)

func RenderQueryResults

func RenderQueryResults(results *QueryResults, truncate bool) string

Types

type Columns

type Columns []string

type QueryResults

type QueryResults struct {
	Columns Columns
	Rows    Rows
	Elapsed time.Duration
}

func Query

func Query(connString, dbName, schema, query string) (*QueryResults, error)

type Row

type Row []string

type Rows

type Rows []Row

Jump to

Keyboard shortcuts

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