psql

package
v0.15.65 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

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)

type Config

type Config struct {
	Vars map[string]string
	Type string
}

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

func (*Metadata) RenderVar

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

type Param

type Param struct {
	Name    string
	Type    string
	IsArray bool
}

type Variables

type Variables map[string]json.RawMessage

Jump to

Keyboard shortcuts

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