azkustodata/query/dataset.go (20 lines of code) (raw):
package query
import (
"context"
"github.com/Azure/azure-kusto-go/azkustodata/errors"
)
// BaseDataset represents a result from kusto - a set of tables with metadata
// This basic interface is implemented by all dataset types - both v1 and v2
// for specific
type BaseDataset interface {
Context() context.Context
Op() errors.Op
PrimaryResultKind() string
}
type Dataset interface {
BaseDataset
Tables() []Table
}
// IterativeDataset represents an iterative result from kusto - where the tables are streamed as they are received from the service.
type IterativeDataset interface {
BaseDataset
Tables() <-chan TableResult
ToDataset() (Dataset, error)
Close() error
}