query

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2018 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_JOIN_DEPTH = 20
)

Variables

View Source
var (
	ErrNotSupported = errors.New("SQL parser does not support the query")
	ErrMaxJoinDepth = errors.New("recurse to MAX_JOIN_DEPTH")
)

Functions

This section is empty.

Types

type Mini

type Mini struct {
	Debug bool
	// contains filtered or unexported fields
}

func NewMini

func NewMini(cwd string) *Mini

func (*Mini) Parse

func (m *Mini) Parse(query, defaultDb string) (QueryInfo, error)

func (*Mini) Run

func (m *Mini) Run()

func (*Mini) Stop

func (m *Mini) Stop()

type QueryInfo

type QueryInfo struct {
	Query    string
	Abstract string
	Tables   []queryProto.Table
}

Jump to

Keyboard shortcuts

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