query

package
v0.0.0-...-c4f60fb Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBindVariable

func GetBindVariable(sql string) []string

func HasBindVariable

func HasBindVariable(sql string) bool

func NewNopRline

func NewNopRline() (rline.IO, error)

func Zip

func Zip(v1 []string, v2 []string) [][]string

Types

type Handler

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

func NewHandler

func NewHandler(
	c *db.DataSourceConfig, enableOutput bool,
) *Handler

func (*Handler) Connect

func (h *Handler) Connect() error

func (*Handler) GetElapsedTime

func (h *Handler) GetElapsedTime() map[string]stats.TimeValues

func (*Handler) Query

func (h *Handler) Query(
	ctx context.Context, rawSql string, useTransaction bool,
) (err error)

func (*Handler) ShowSystemInfo

func (h *Handler) ShowSystemInfo() error

type SimpleParser

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

func NewSimpleParser

func NewSimpleParser(sql string) *SimpleParser

func (*SimpleParser) Parse

func (p *SimpleParser) Parse() error

func (*SimpleParser) Replace

func (p *SimpleParser) Replace() (string, error)

Jump to

Keyboard shortcuts

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