featurebase/systemlayer/systemlayer.go
pokeeffe-molecula dca0dd84e3 implement fb_exec_requests system table (#2327)
implements an fb_exec_requests system table. The purpose of this table is to allow access to internal state to see what queries are running and have been run.
Co-authored-by: Travis Turner <travis@molecula.com>

(cherry picked from commit 47d8be26f5)
2022-12-12 09:01:20 -08:00

20 lines
537 B
Go

package systemlayer
import pilosa "github.com/molecula/featurebase/v3"
// SystemLayer is a struct to hold internal FeatureBase state
// Initially this is just the execution requests, but later may include other
// internal state (Buffer Pool?)
type SystemLayer struct {
executionRequests pilosa.ExecutionRequestsAPI
}
func NewSystemLayer() *SystemLayer {
return &SystemLayer{
executionRequests: NewExecutionRequestsAPI(),
}
}
func (e *SystemLayer) ExecutionRequests() pilosa.ExecutionRequestsAPI {
return e.executionRequests
}