From d46608bec8e2389c1a8256491b54140158b318fb Mon Sep 17 00:00:00 2001 From: guzeng Date: Sun, 14 Feb 2021 00:36:31 +0800 Subject: [PATCH] =?UTF-8?q?=E9=93=BE=E5=BC=8F=E6=93=8D=E4=BD=9C=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=89=B9=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chain.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/chain.go b/chain.go index 2019c04..0d7c8bd 100644 --- a/chain.go +++ b/chain.go @@ -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)