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