Documentation
¶
Index ¶
- func DbConnect(mgr *db.Manager) ...
- func DbConnectSchema() *structpb.Struct
- func DbDescribeTable(mgr *db.Manager) ...
- func DbDescribeTableSchema() *structpb.Struct
- func DbDisconnect(mgr *db.Manager) ...
- func DbDisconnectSchema() *structpb.Struct
- func DbExport(mgr *db.Manager) ...
- func DbExportSchema() *structpb.Struct
- func DbImport(mgr *db.Manager) ...
- func DbImportSchema() *structpb.Struct
- func DbListConnections(mgr *db.Manager) ...
- func DbListConnectionsSchema() *structpb.Struct
- func DbListTables(mgr *db.Manager) ...
- func DbListTablesSchema() *structpb.Struct
- func DbQuery(mgr *db.Manager) ...
- func DbQuerySchema() *structpb.Struct
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
DbQuerySchema returns the JSON Schema for the db_query tool.
Types ¶
This section is empty.