tools

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DbConnect

func DbConnect(mgr *db.Manager) func(ctx context.Context, req *pluginv1.ToolRequest) (*pluginv1.ToolResponse, error)

DbConnect returns a tool handler that connects to a database.

func DbConnectSchema

func DbConnectSchema() *structpb.Struct

DbConnectSchema returns the JSON Schema for the db_connect tool.

func DbDescribeTable

func DbDescribeTable(mgr *db.Manager) func(ctx context.Context, req *pluginv1.ToolRequest) (*pluginv1.ToolResponse, error)

DbDescribeTable returns a tool handler that shows table columns and types.

func DbDescribeTableSchema

func DbDescribeTableSchema() *structpb.Struct

DbDescribeTableSchema returns the JSON Schema for the db_describe_table tool.

func DbDisconnect

func DbDisconnect(mgr *db.Manager) func(ctx context.Context, req *pluginv1.ToolRequest) (*pluginv1.ToolResponse, error)

DbDisconnect returns a tool handler that disconnects from a database.

func DbDisconnectSchema

func DbDisconnectSchema() *structpb.Struct

DbDisconnectSchema returns the JSON Schema for the db_disconnect tool.

func DbExport

func DbExport(mgr *db.Manager) func(ctx context.Context, req *pluginv1.ToolRequest) (*pluginv1.ToolResponse, error)

DbExport returns a tool handler that exports a table as CSV or JSON.

func DbExportSchema

func DbExportSchema() *structpb.Struct

DbExportSchema returns the JSON Schema for the db_export tool.

func DbImport

func DbImport(mgr *db.Manager) func(ctx context.Context, req *pluginv1.ToolRequest) (*pluginv1.ToolResponse, error)

DbImport returns a tool handler that imports data from a CSV or JSON file.

func DbImportSchema

func DbImportSchema() *structpb.Struct

DbImportSchema returns the JSON Schema for the db_import tool.

func DbListConnections

func DbListConnections(mgr *db.Manager) func(ctx context.Context, req *pluginv1.ToolRequest) (*pluginv1.ToolResponse, error)

DbListConnections returns a tool handler that lists all active database connections.

func DbListConnectionsSchema

func DbListConnectionsSchema() *structpb.Struct

DbListConnectionsSchema returns the JSON Schema for the db_list_connections tool.

func DbListTables

func DbListTables(mgr *db.Manager) func(ctx context.Context, req *pluginv1.ToolRequest) (*pluginv1.ToolResponse, error)

DbListTables returns a tool handler that lists tables in a database.

func DbListTablesSchema

func DbListTablesSchema() *structpb.Struct

DbListTablesSchema returns the JSON Schema for the db_list_tables tool.

func DbQuery

func DbQuery(mgr *db.Manager) func(ctx context.Context, req *pluginv1.ToolRequest) (*pluginv1.ToolResponse, error)

DbQuery returns a tool handler that executes a SELECT query and returns results as JSON.

func DbQuerySchema

func DbQuerySchema() *structpb.Struct

DbQuerySchema returns the JSON Schema for the db_query tool.

Types

This section is empty.

Jump to

Keyboard shortcuts

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