func PanicUnimplementedQuery(dg utils.QueryGenerator) {
	panic(fmt.Sprintf("database (%v) does not implement query", reflect.TypeOf(dg)))
}
PanicUnimplementedQuery generates a panic for the provided query generator.
package common
import (
	"fmt"
	"math/rand"
	"reflect"
	"time"
	"github.com/timescale/tsbs/cmd/tsbs_generate_queries/utils"
	internalutils "github.com/timescale/tsbs/internal/utils"
)
const (
	errMoreItemsThanScale = "cannot get random permutation with more items than scale"
)
type Core struct {
	Interval *internalutils.TimeInterval
	Scale int
}
func NewCore(start, end time.Time, scale int) (*Core, error) {
	ti, err := internalutils.NewTimeInterval(start, end)
	if err != nil {
		return nil, err
	}
	return &Core{Interval: ti, Scale: scale}, nil
}