Chore: Add omit wrapper for xorm (#82476)

This commit is contained in:
Ryan McKinley 2024-02-14 12:19:46 -08:00 committed by GitHub
parent d4ae10ecc6
commit 3482c8ef09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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...)