node_db_query
Executes SQL statements against MySQL, MariaDB, or PostgreSQL on a target node or Docker container without exposing database passwords through the CLI.
Instructions
Execute a SQL statement on a TargetNode (either directly on the host or inside a Docker container) without CLI password exposure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | Yes | TargetNode name. | |
| query | Yes | SQL statement to execute. | |
| engine | Yes | Database engine. | |
| db_user | No | root | |
| database | No | ||
| container | No | Optional Docker container name. Leave empty to run psql/mysql directly on the TargetNode. | |
| db_password_env | No | ||
| confirm_destructive | No |