sql

package
v3.35.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0, Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Splitter

func Splitter(separator string) func(rune) bool

Splitter returns a splitter based on runes in a separator

Types

type Main

type Main struct {
	idk.Main             `flag:"!embed"`
	Driver               string `help:"key used for finding go sql database driver"`
	ConnectionString     string `short:"g" help:"credentials for connecting to sql database"`
	RowExpr              string `short:"w" help:"sql + type description on input"`
	StringArraySeparator string `help:"separator used to delineate values in string array"`
}

func NewMain

func NewMain() *Main

type Source

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

func NewSource

func NewSource(driver, connString, cmd, separator string, c chan []interface{}, log logger.Logger) (*Source, error)

func (*Source) Close

func (s *Source) Close() error

func (*Source) Open

func (s *Source) Open() error

func (*Source) Record

func (s *Source) Record() (idk.Record, error)

func (*Source) Schema

func (s *Source) Schema() []idk.Field

Jump to

Keyboard shortcuts

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