option

package
v0.0.0-...-cdb6189 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenDelete

func GenDelete(table string, opts ...Option) (string, []interface{}, error)

func GenInstall

func GenInstall(table string, rows interface{}, opts ...Option) (string, []interface{}, error)

func GenSelect

func GenSelect(table string, opts ...Option) (string, []interface{}, error)

func GenUpdate

func GenUpdate(table string, opts ...Option) (string, []interface{}, error)

Types

type Option

type Option func(*defaultOptions)

func WithAsc

func WithAsc(field string) Option

func WithDesc

func WithDesc(field string) Option

func WithErrDoNothing

func WithErrDoNothing() Option

func WithErrDoUpdate

func WithErrDoUpdate() Option

func WithEx

func WithEx(exp ...goqu.Expression) Option

func WithExpression deprecated

func WithExpression(exp ...goqu.Expression) Option

Deprecated: Please Use WithEx

func WithFields

func WithFields(fields ...string) Option

func WithGroup

func WithGroup(field string) Option

func WithHaving

func WithHaving(field string) Option

func WithPageSize

func WithPageSize(page, size uint) Option

func WithRecord

func WithRecord(set goqu.Record) Option

func WithSetRecord deprecated

func WithSetRecord(set goqu.Record) Option

Deprecated: Please Use WithRecord

func WithUniKey

func WithUniKey(in string) Option

WithUniKey 唯一索引

Jump to

Keyboard shortcuts

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