Documentation
¶
Index ¶
- func ExecuteVolcengine(ctx context.Context, client *volcengine.Client, params VolcengineParams) ([]byte, error)
- func ResolveSQL(args []string, filePath string, stdin *os.File) (string, error)
- func RunLinked(ctx context.Context, sql string, projectRef string, format string, ...) error
- func RunLocal(ctx context.Context, sql string, config pgconn.Config, format string, ...) error
- func RunVolcengine(ctx context.Context, client *volcengine.Client, params VolcengineParams, ...) error
- type Advisory
- type VolcengineParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteVolcengine ¶
func ExecuteVolcengine(ctx context.Context, client *volcengine.Client, params VolcengineParams) ([]byte, error)
ExecuteVolcengine executes SQL through postgres-meta and returns its JSON response.
func RunLinked ¶
func RunLinked(ctx context.Context, sql string, projectRef string, format string, agentMode bool, w io.Writer) error
RunLinked executes SQL against the linked project via Management API.
func RunLocal ¶
func RunLocal(ctx context.Context, sql string, config pgconn.Config, format string, agentMode bool, w io.Writer, options ...func(*pgx.ConnConfig)) error
RunLocal executes SQL against the local database via pgx.
func RunVolcengine ¶
func RunVolcengine(ctx context.Context, client *volcengine.Client, params VolcengineParams, w io.Writer) error
RunVolcengine executes SQL through the Supabase postgres-meta route exposed by Kong.
Types ¶
type Advisory ¶
type Advisory struct {
ID string `json:"id"`
Priority int `json:"priority"`
Level string `json:"level"`
Title string `json:"title"`
Message string `json:"message"`
RemediationSQL string `json:"remediation_sql"`
DocURL string `json:"doc_url"`
}
Advisory represents a contextual warning injected into agent-mode responses. All GROWTH advisory tasks share this shape. Max 1 advisory per response; when multiple candidates apply, the lowest Priority number wins.
Click to show internal directories.
Click to hide internal directories.