mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
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.
18 lines
333 B
Go
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
|
|
}
|