builder

package
v0.0.0-...-8ad63dc Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package builder is for building DFL expressions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

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

func New

func New(quotes []string, tabs int) Builder

func (Builder) Dfl

func (b Builder) Dfl() string

func (Builder) Indent

func (b Builder) Indent(indent int) Builder

func (Builder) Left

func (b Builder) Left(n Node) Builder

func (Builder) Op

func (b Builder) Op(operator string) Builder

func (Builder) Pretty

func (b Builder) Pretty(pretty bool) Builder

func (Builder) Right

func (b Builder) Right(n Node) Builder

func (Builder) Sql

func (b Builder) Sql() string

func (Builder) Tabs

func (b Builder) Tabs(tabs int) Builder

func (Builder) TrimRight

func (b Builder) TrimRight(trimRight bool) Builder

type Node

type Node interface {
	Dfl(quotes []string, pretty bool, tabs int) string
	Sql(pretty bool, tabs int) string
}

Jump to

Keyboard shortcuts

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