Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Avg ¶ added in v0.6.1
Aggregate Avg uses database aggregate to get a average on the target
Is used with query.Avg as argument for select
Example ¶
goe.Select[struct {
Avg query.Avg
}](&struct {
Avg *query.Avg
}{
Avg: aggregate.Avg(&db.Animal.Id),
})
func Count ¶
Aggregate Count uses database aggregate to make a count on the target
Is used with query.Count as argument for select
Example ¶
goe.Select[struct {
Count query.Count
}](&struct {
Count *query.Count
}{
Count: aggregate.Count(&db.Animal.Id),
})
func Max ¶ added in v0.6.1
Aggregate Max uses database aggregate to get the maximum value on the target
Is used with query.Max as argument for select
Example ¶
goe.Select[struct {
Max query.Max
}](&struct {
Max *query.Max
}{
Max: aggregate.Max(&db.Animal.Id),
})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.