Skip to content

Commit

Permalink
Add aggregation section
Browse files Browse the repository at this point in the history
  • Loading branch information
WinPooh32 committed Jan 8, 2024
1 parent 540136e commit 29b1576
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,21 @@ It does:
- [SQL](https://pkg.go.dev/github.com/WinPooh32/norm/driver/sql)
- MongoDB (TODO)

## Aggregation

For using in-memory aggregation functions model type must implement this interface:

```go
type Keyer[K comparable] interface {
Key() K
}
```

Available functions:

- [Lookup](https://pkg.go.dev/github.com/WinPooh32/norm#Lookup) - left outer join
- [Group](https://pkg.go.dev/github.com/WinPooh32/norm#Group) - values grouping

## Examples

### SQL
Expand Down

0 comments on commit 29b1576

Please sign in to comment.