MCPcopy
hub / github.com/kenn-io/msgvault / Aggregate

Method Aggregate

internal/query/engine.go:16–16  ·  view source on GitHub ↗

Aggregate performs grouping based on the provided ViewType (Sender, Domain, etc.)

(ctx context.Context, groupBy ViewType, opts AggregateOptions)

Source from the content-addressed store, hash-verified

14type Engine interface {
15 // Aggregate performs grouping based on the provided ViewType (Sender, Domain, etc.)
16 Aggregate(ctx context.Context, groupBy ViewType, opts AggregateOptions) ([]AggregateRow, error)
17
18 // SubAggregate performs aggregation on a filtered subset of messages.
19 // This is used for sub-grouping after drill-down, e.g., drilling into

Implementers 4

Engineinternal/remote/engine.go
SQLiteEngineinternal/query/sqlite.go
DuckDBEngineinternal/query/duckdb.go
MockEngineinternal/query/querytest/mock_engine.g

Calls

no outgoing calls