Files
steampipe/pkg/interactive/metaquery/handler_input.go
kaidaguerre 40804a3201 Execute RefreshConnections asyncronously and optimise for high connection count. Add connection_state table.
- Execute RefreshConnections asyncronously
- Add connection_state table to indicate the loading state of connections
- Optimise RefreshConnections by cloning connection schemas
- Add locking to ensure only a single instance of RefreshConnections runs
- Start executing queries without waiting for connections to load, add smart error handling to wait for required connection
- Optimise autocomplete for high connection count
- Autocomplete and inspect data available before all conections are refreshed
- Update file watcher to respond to CHMOD, so thaat it pickes up deletion of file contents

 Closes #3394
 Closes #3267
2023-05-10 09:05:08 +01:00

24 lines
543 B
Go

package metaquery
import (
"github.com/c-bata/go-prompt"
"github.com/turbot/steampipe/pkg/db/db_common"
"github.com/turbot/steampipe/pkg/steampipeconfig"
)
// HandlerInput defines input data for the metaquery handler
type HandlerInput struct {
Client db_common.Client
Schema *db_common.SchemaMetadata
Prompt *prompt.Prompt
ClosePrompt func()
Query string
ConnectionState steampipeconfig.ConnectionStateMap
SearchPath []string
}
func (h *HandlerInput) args() []string {
return getArguments(h.Query)
}