sql

package
v0.0.3-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data interface {
	Append(other Data) Data
	AppendWithSpace(other Data) Data
	SurroundAppend(l, r string, other Data) Data

	String() string
	Values() []interface{}
}

func Empty

func Empty() Data

Empty can be used before a for loop to initialize your Data

func Format

func Format(format string, a ...interface{}) Data

func Join

func Join(sep string, d []Data) Data

Join will combine the Data with each other with sep in between each String value. It will not append empty String values, but will append the Values, if any.

func New

func New(s string, values []interface{}) Data

func Newf

func Newf(values []interface{}, format string, a ...interface{}) Data

func String

func String(s string) Data

func Surround

func Surround(l, r string, d Data) Data

func Values

func Values(values []interface{}) Data

Jump to

Keyboard shortcuts

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