builder

package
v0.0.0-...-129d944 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidEntity = errors.New("builder: invalid entity")
)

Functions

func InsertStmt

func InsertStmt(entity any) (query string, values []any, err error)

Types

type InsertSQL

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

func NewInsertSQL

func NewInsertSQL() *InsertSQL

func (*InsertSQL) AddColumn

func (t *InsertSQL) AddColumn(name string, val any)

func (*InsertSQL) Err

func (t *InsertSQL) Err() error

func (*InsertSQL) Fill

func (t *InsertSQL) Fill(val reflect.Value)

func (*InsertSQL) HasColumn

func (t *InsertSQL) HasColumn(name string) bool

func (*InsertSQL) SetName

func (t *InsertSQL) SetName(name string)

func (*InsertSQL) String

func (t *InsertSQL) String() string

func (*InsertSQL) Values

func (t *InsertSQL) Values() []any

Jump to

Keyboard shortcuts

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