From b5f94d01cc2b8c45323c83febcd8343c850ca046 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AE=B7=E5=8B=87?= Date: Thu, 14 Sep 2023 13:54:43 +0800 Subject: [PATCH] add custom query sql --- dbpool.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dbpool.go b/dbpool.go index 6e66768..724463f 100644 --- a/dbpool.go +++ b/dbpool.go @@ -84,6 +84,11 @@ func (this *dbPool) OrmSelect( this.internalQuery(dataSource, sql, params, cb) } +func (this *dbPool) SelectCustomQuery(dataSource string, sql string, cb QueryResultCb) { + params := []string{} + this.internalQuery(dataSource, sql, params, cb) +} + func (this *dbPool) SelectLike( dataSource string, tblName string,