Added func Max to the expression extension

This commit is contained in:
Daniel Hammerschmid 2019-04-17 09:52:47 +02:00 committed by Gerhard Gruber
parent 32a34dc0e8
commit 737d170906

View File

@ -239,6 +239,10 @@ func (e *expr) Sum() string {
return "SUM(" + e.expr + ")"
}
func (e *expr) Max() string {
return "MAX(" + e.expr + ")"
}
func (e *expr) Count() string {
return "COUNT(" + e.expr + ")"
}
@ -357,4 +361,3 @@ func (db *DB) FormatDate(e *expr, format string) *expr {
func (db *DB) FormatDateColumn(e *expr, format string) string {
return db.FormatDate(e, format).expr
}