From ef1c91c8577f2fbf3ec72da277fb1f228b1ea01c Mon Sep 17 00:00:00 2001 From: zhangleitao Date: Fri, 13 Sep 2024 13:12:08 +0800 Subject: [PATCH] add comment --- field/export.go | 1 + 1 file changed, 1 insertion(+) diff --git a/field/export.go b/field/export.go index a51b021a..37d75b6f 100644 --- a/field/export.go +++ b/field/export.go @@ -32,6 +32,7 @@ func NewField(table, column string, opts ...Option) Field { return Field{expr: expr{col: toColumn(table, column, opts...)}} } +// NewFieldRaw create new field by native sql func NewFieldRaw(rawSql string, vars ...interface{}) Field { return Field{expr: expr{e: clause.Expr{SQL: rawSql, Vars: vars}}} }