Files
wehub-resource-sync e04ed9c211
CF: Deploy Dev Docs / deploy (push) Has been cancelled
Sync Labels / build (push) Has been cancelled
tests / unit tests (macos-latest) (push) Has been cancelled
tests / unit tests (windows-latest) (push) Has been cancelled
tests / unit tests (ubuntu-latest) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:32:45 +08:00

65 lines
1.8 KiB
YAML

# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
kind: source
name: mindsdb
type: mindsdb
host: ${MINDSDB_HOST}
port: ${MINDSDB_PORT}
database: ${MINDSDB_DATABASE}
user: ${MINDSDB_USER}
password: ${MINDSDB_PASS}
---
kind: tool
name: execute_sql
type: mindsdb-execute-sql
source: mindsdb
description: |
Execute SQL queries directly on MindsDB database.
Use this tool to run any SQL statement against your MindsDB instance.
Example: SELECT * FROM my_table LIMIT 10
---
kind: tool
name: parameterized_sql
type: mindsdb-sql
source: mindsdb
statement: |
SELECT * FROM {{.table_name}}
WHERE {{.condition_column}} = ?
LIMIT {{.limit}}
description: |
Execute parameterized SQL queries on MindsDB database.
Use this tool to run parameterized SQL statements against your MindsDB instance.
Example: {"table_name": "users", "condition_column": "status", "limit": 10}
templateParameters:
- name: table_name
type: string
description: Name of the table to query
- name: condition_column
type: string
description: Column name to use in WHERE clause
- name: limit
type: integer
description: Maximum number of rows to return
parameters:
- name: value
type: string
description: Value to match in the WHERE clause
---
kind: toolset
name: mindsdb-tools
tools:
- execute_sql
- parameterized_sql