Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compiler

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

func NewCompiler

func NewCompiler(conf Config) *Compiler

func (*Compiler) Compile

func (co *Compiler) Compile(w *bytes.Buffer, qc *qcode.QCode) (Metadata, error)

func (*Compiler) CompileEx

func (co *Compiler) CompileEx(qc *qcode.QCode) (Metadata, []byte, error)

func (*Compiler) CompileQuery

func (co *Compiler) CompileQuery(
	w *bytes.Buffer,
	qc *qcode.QCode,
	md *Metadata)

func (*Compiler) RenderVar

func (c *Compiler) RenderVar(w *bytes.Buffer, md *Metadata, vv string)

type Config

type Config struct {
	Vars      map[string]string
	DBType    string
	DBVersion int
}

type IntStack

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

func NewIntStack

func NewIntStack() *IntStack

    Create a new IntStack

    func (*IntStack) Len

    func (s *IntStack) Len() int

      Return the number of items in the IntStack

      func (*IntStack) Peek

      func (s *IntStack) Peek() int32

        View the top item on the IntStack

        func (*IntStack) Pop

        func (s *IntStack) Pop() int32

          Pop the top item of the IntStack and return it

          func (*IntStack) Push

          func (s *IntStack) Push(value int32)

            Push a value onto the top of the IntStack

            type Metadata

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

            func (Metadata) Params

            func (md Metadata) Params() []Param

            type Param

            type Param struct {
            	Name    string
            	Type    string
            	IsArray bool
            }

            type Variables

            type Variables map[string]json.RawMessage