mirror of
https://github.com/turbot/steampipe.git
synced 2026-01-24 08:01:31 -05:00
- 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
24 lines
543 B
Go
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)
|
|
}
|