Chore: Add omit wrapper for xorm (#82476)

pull/81924/head^2
Ryan McKinley 1 year ago committed by GitHub
parent d4ae10ecc6
commit 3482c8ef09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      pkg/util/xorm/session_cols.go

@ -94,6 +94,12 @@ func (session *Session) AllCols() *Session {
return session
}
// AllCols ask all columns
func (session *Session) Omit(columns ...string) *Session {
session.statement.Omit(columns...)
return session
}
// MustCols specify some columns must use even if they are empty
func (session *Session) MustCols(columns ...string) *Session {
session.statement.MustCols(columns...)

Loading…
Cancel
Save