Browse Source

查询方式增加wheres

master v0.3.0
guzeng 3 years ago
parent
commit
44f10248cc
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      chain.go

+ 4
- 0
chain.go View File

@ -63,6 +63,10 @@ func (this *Query) Where(where string) *Query {
this.where = append(this.where, where)
return this
}
func (this *Query) Wheres(wheres []string) *Query {
this.where = append(this.where, wheres...)
return this
}
func (this *Query) WhereOr(where string) *Query {
this.where_or = append(this.where_or, where)
return this


Loading…
Cancel
Save