From d4df71cf37e5e8e6762e82f7b6b75e32394471f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Fri, 23 Aug 2024 12:11:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20where=20operate=20?= =?UTF-8?q?=E6=9E=9A=E4=B8=BE=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- database.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/database.go b/database.go index dfe7679..364175f 100644 --- a/database.go +++ b/database.go @@ -20,3 +20,13 @@ const ( SqlTypeUpdate = "update" SqlTypeDelete = "delete" ) + +// Equal , NotEqual , In , NotIn , Like, NotLike +const ( + WhereOperateEqual = "equal" // = + WhereOperateNotEqual = "not_equal" // != + WhereOperateIn = "in" // in + WhereOperateNotIn = "not_in" // not in + WhereOperateLike = "like" // like + WhereOperateNotLike = "not_like" // not like +)