Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
FallbackUser string
FallbackPassword string
Masker mask.Masker
ApplyPII bool
MaxRows int
Timeout time.Duration
EnforceReadOnly bool
}
Options configures local query execution.
type Result ¶
type Result struct {
Status string `json:"status"`
Results map[string]any `json:"results,omitempty"`
Data []map[string]any `json:"data,omitempty"`
Columns []string `json:"columns,omitempty"`
}
Result is the tabular execute payload shared by Studio dispatch and db_query_* tools.
type Target ¶
type Target struct {
DBType string `json:"db_type"`
AWSAccountID string `json:"aws_account_id"`
DatabaseName string `json:"database_name"`
Host string `json:"host"`
User string `json:"user,omitempty"`
Password string `json:"password,omitempty"`
SSLMode string `json:"sslmode,omitempty"` // postgres
Name string `json:"name,omitempty"` // optional logical name (wire targets)
}
Target declares a database the edge can reach for one-shot exec or Studio dispatch.
func MergeWireTargets ¶
MergeWireTargets appends tunnel.Target entries (SKYBRIDGE_TARGETS wire-proxy shape) as exec targets.
func ParseTargets ¶
ParseTargets decodes SKYBRIDGE_STUDIO_TARGETS / SKYBRIDGE_TARGETS JSON arrays.
Click to show internal directories.
Click to hide internal directories.