featurebase/dax/queryer/system_api.go
Travis Turner 92f64f42e9
Stub out the queryer/systemAPI implementation
This is used to fix the fb_exec_requests query; by default, it was doing
"fanout", but that doesn't make sense in serverless. So we needed a way
to prevent fanout when running Serverless. This gets that distinction
from the `SystemAPI.ClusterName()` method.
2023-03-15 11:14:23 -05:00

18 lines
333 B
Go

package queryer
import (
featurebase "github.com/featurebasedb/featurebase/v3"
)
// systemAPI is a no-op implementation of the systemAPI.
type systemAPI struct {
featurebase.NopSystemAPI
}
func newSystemAPI() *systemAPI {
return &systemAPI{}
}
func (s *systemAPI) ClusterName() string {
return featurebase.FlavorServerless
}