Documentation ¶
Index ¶
- func GenDelete(table string, opts ...Option) (string, []interface{}, error)
- func GenInstall(table string, rows interface{}, opts ...Option) (string, []interface{}, error)
- func GenSelect(table string, opts ...Option) (string, []interface{}, error)
- func GenUpdate(table string, opts ...Option) (string, []interface{}, error)
- type Option
- func WithAsc(field string) Option
- func WithDesc(field string) Option
- func WithErrDoNothing() Option
- func WithErrDoUpdate() Option
- func WithEx(exp ...goqu.Expression) Option
- func WithExpression(exp ...goqu.Expression) Optiondeprecated
- func WithFields(fields ...string) Option
- func WithGroup(field string) Option
- func WithHaving(field string) Option
- func WithPageSize(page, size uint) Option
- func WithRecord(set goqu.Record) Option
- func WithSetRecord(set goqu.Record) Optiondeprecated
- func WithUniKey(in string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenInstall ¶
Types ¶
type Option ¶
type Option func(*defaultOptions)
func WithErrDoNothing ¶
func WithErrDoNothing() Option
func WithErrDoUpdate ¶
func WithErrDoUpdate() Option
func WithExpression
deprecated
func WithExpression(exp ...goqu.Expression) Option
Deprecated: Please Use WithEx
func WithFields ¶
func WithHaving ¶
func WithPageSize ¶
func WithRecord ¶
func WithRecord(set goqu.Record) Option
func WithSetRecord
deprecated
func WithSetRecord(set goqu.Record) Option
Deprecated: Please Use WithRecord
Click to show internal directories.
Click to hide internal directories.