builder

package
v0.0.0-...-81ee819 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2018 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

Typical builders commonly used to build queries.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	Format token.Format
}

Builder is a container for storing options so that you can build a query with the same options over and over again.

func NewBuilder

func NewBuilder(format token.Format) Builder

NewBuilder returns a Builder with a specified options.

func (Builder) Build

func (b Builder) Build(s stmt.Statement) (string, []interface{})

Build converts a statement into a query and a slice of values.

type ErrBuilderNotSupported

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

ErrBuilderNotSupported builder not supported error

func NewErrBuilderNotSupported

func NewErrBuilderNotSupported(builderName string) ErrBuilderNotSupported

NewErrBuilderNotSupported create an ErrBuilderNotSupported instance

func (ErrBuilderNotSupported) Error

func (err ErrBuilderNotSupported) Error() string

Jump to

Keyboard shortcuts

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