Browse Source

链式操作增加批量

master v0.2.1
guzeng 3 years ago
parent
commit
d46608bec8
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      chain.go

+ 8
- 0
chain.go View File

@ -71,6 +71,10 @@ func (this *Query) Value(value interface{}) *Query {
this.value = append(this.value, value)
return this
}
func (this *Query) Values(values []interface{}) *Query {
this.value = append(this.value, values...)
return this
}
func (this *Query) Join(join []string) *Query {
this.join = append(this.join, join)
return this
@ -79,6 +83,10 @@ func (this *Query) Data(data string) *Query {
this.data = append(this.data, data)
return this
}
func (this *Query) Datas(datas []string) *Query {
this.data = append(this.data, datas...)
return this
}
// func (this *Query) Insert(where string) *Query {
// this.insert = append(this.insert, where)


Loading…
Cancel
Save