sqlbuilder

package
v1.0.34 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

README

sqlbuilder

实现简单的增删改查!在不带来安全隐患的同事,解决手写痛点!

具体看示例。

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDelete added in v1.0.30

func NewDelete(baseSql string) *delete

func NewInsert added in v1.0.30

func NewInsert(baseSql string) *insert

func NewQuery

func NewQuery(baseSQL string) *query

func NewUpdate added in v1.0.30

func NewUpdate(baseSQL string) *update

Types

type Condition added in v1.0.27

type Condition string

func NewCondition

func NewCondition(str string) Condition

func (Condition) ADD added in v1.0.30

func (c Condition) ADD(cs ...Condition) Condition

func (Condition) AND added in v1.0.27

func (c Condition) AND(cs ...Condition) Condition

func (Condition) BUNCH added in v1.0.30

func (c Condition) BUNCH() Condition

func (Condition) OR added in v1.0.27

func (c Condition) OR(cs ...Condition) Condition

type ConditionArgs added in v1.0.27

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

func NewConditionArgs

func NewConditionArgs(str string, arg interface{}) *ConditionArgs

func (*ConditionArgs) ADD added in v1.0.30

func (c *ConditionArgs) ADD(c1 Condition, arg interface{}) *ConditionArgs

func (*ConditionArgs) AND added in v1.0.27

func (c *ConditionArgs) AND(c1 Condition, arg interface{}) *ConditionArgs

func (*ConditionArgs) APPEND added in v1.0.30

func (c *ConditionArgs) APPEND(cgs ...*ConditionArgs) *ConditionArgs

func (*ConditionArgs) APPENDAND added in v1.0.27

func (c *ConditionArgs) APPENDAND(cgs ...*ConditionArgs) *ConditionArgs

func (*ConditionArgs) APPENDOR added in v1.0.27

func (c *ConditionArgs) APPENDOR(cgs ...*ConditionArgs) *ConditionArgs

func (*ConditionArgs) BUNCH added in v1.0.30

func (c *ConditionArgs) BUNCH() *ConditionArgs

func (*ConditionArgs) OR added in v1.0.27

func (c *ConditionArgs) OR(c1 Condition, arg interface{}) *ConditionArgs

Jump to

Keyboard shortcuts

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