mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 10:20:29 -06:00
Chore: Add omit wrapper for xorm (#82476)
This commit is contained in:
parent
d4ae10ecc6
commit
3482c8ef09
@ -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…
Reference in New Issue
Block a user