query

package
v0.1.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

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 ResolveSQL

func ResolveSQL(args []string, filePath string, stdin *os.File) (string, error)

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.

type VolcengineParams

type VolcengineParams struct {
	WorkspaceID string
	BranchID    string
	SQL         string
	ReadOnly    bool
	Format      string
	AgentMode   bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL