Documentation
¶
Index ¶
- func RegisterAll(server *mcp.Server, deps *Deps)
- type ConfirmExecuteInput
- type DatabaseInfo
- type Deps
- type DescribeTableInput
- type DryRunInput
- type DryRunResult
- type ExecuteResult
- type ExplainQueryInput
- type HostInfo
- type ListDatabasesInput
- type ListHostsInput
- type ListTablesInput
- type QueryInput
- type TableDescription
- type TableInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAll ¶
Types ¶
type ConfirmExecuteInput ¶
type ConfirmExecuteInput struct {
DryRunID string `json:"dry_run_id" jsonschema:"the ID returned from a previous dry_run call"`
}
type DatabaseInfo ¶
type DescribeTableInput ¶
type DescribeTableInput struct {
Host string `json:"host,omitempty" jsonschema:"host name from config, omit for default"`
Database string `json:"database" jsonschema:"the database name"`
Table string `json:"table" jsonschema:"the table name"`
Schema string `json:"schema,omitempty" jsonschema:"schema name (default: public)"`
}
type DryRunInput ¶
type DryRunInput struct {
Host string `json:"host,omitempty" jsonschema:"host name from config, omit for default"`
Database string `json:"database" jsonschema:"the database to execute against"`
SQL string `json:"sql" jsonschema:"the write query (INSERT/UPDATE/DELETE) or DDL (ALTER/CREATE/DROP) to preview"`
}
type DryRunResult ¶
type DryRunResult struct {
DryRunID string `json:"dry_run_id"`
Host string `json:"host"`
Kind string `json:"kind"`
Database string `json:"database"`
Tables []string `json:"tables"`
EstimatedRows int64 `json:"estimated_rows"`
ExplainPlan string `json:"explain_plan"`
Query string `json:"query"`
ExpiresInSeconds int `json:"expires_in_seconds"`
Message string `json:"message"`
}
type ExecuteResult ¶
type ExplainQueryInput ¶
type ListDatabasesInput ¶
type ListDatabasesInput struct {
Host string `json:"host,omitempty" jsonschema:"host name from config, omit for default"`
}
type ListHostsInput ¶
type ListHostsInput struct{}
type ListTablesInput ¶
type QueryInput ¶
type QueryInput struct {
Host string `json:"host,omitempty" jsonschema:"host name from config, omit for default"`
Database string `json:"database" jsonschema:"the database to query"`
SQL string `json:"sql" jsonschema:"SELECT query to execute"`
Limit int `json:"limit,omitempty" jsonschema:"max rows to return (default 100, max 1000)"`
}
type TableDescription ¶
Click to show internal directories.
Click to hide internal directories.