parser

package
v0.0.0-...-8429761 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: PostgreSQL Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseComment

func ParseComment(comm string) (map[string]string, error)

key: value[, key1: value1...]

Types

type ParseState

type ParseState interface{}

type ParseStateEmptyQuery

type ParseStateEmptyQuery struct {
	ParseState
}

type ParseStateErr

type ParseStateErr struct {
	ParseState
}

type ParseStateExecute

type ParseStateExecute struct {
	ParseState
	ParamsQuerySuf string
	Name           string
}

type ParseStateExplain

type ParseStateExplain struct {
	ParseState
	Query lyx.Node
}

type ParseStatePrepareStmt

type ParseStatePrepareStmt struct {
	ParseState
	Name  string
	Query string
}

type ParseStateQuery

type ParseStateQuery struct {
	ParseState
}

type ParseStateResetAllStmt

type ParseStateResetAllStmt struct {
	ParseState
}

type ParseStateResetMetadataStmt

type ParseStateResetMetadataStmt struct {
	ParseState
	Setting string
}

type ParseStateResetStmt

type ParseStateResetStmt struct {
	ParseState
	Name string
}

type ParseStateSetLocalStmt

type ParseStateSetLocalStmt struct {
	ParseState
	Name  string
	Value string
}

type ParseStateSetStmt

type ParseStateSetStmt struct {
	ParseState
	Name  string
	Value string
}

type ParseStateShowStmt

type ParseStateShowStmt struct {
	ParseState
	Name string
}

type ParseStateSkip

type ParseStateSkip struct {
	ParseState
}

type ParseStateTXBegin

type ParseStateTXBegin struct {
	ParseState
	Options []lyx.TransactionModeItem
}

type ParseStateTXCommit

type ParseStateTXCommit struct {
	ParseState
}

type ParseStateTXRollback

type ParseStateTXRollback struct {
	ParseState
}

type QParser

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

func (*QParser) Parse

func (qp *QParser) Parse(query string) (ParseState, string, error)

TODO : unit tests

func (*QParser) Query

func (qp *QParser) Query() string

func (*QParser) State

func (qp *QParser) State() ParseState

func (*QParser) Stmt

func (qp *QParser) Stmt() lyx.Node

Jump to

Keyboard shortcuts

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