loader

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueryDir = "queries"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NoopLoader

type NoopLoader struct{}

NoopLoader does nothing

func (NoopLoader) Next

func (n NoopLoader) Next() (queryID string, queryStmt ast.StmtNode)

type QueryLoader

type QueryLoader interface {
	Next() (queryID string, queryStmt ast.StmtNode)
}

func LoadDir

func LoadDir(queriesDir string) (QueryLoader, error)

type StandardLoader

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

func (*StandardLoader) Next

func (g *StandardLoader) Next() (string, ast.StmtNode)

Jump to

Keyboard shortcuts

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