You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "davsclaus (via GitHub)" <gi...@apache.org> on 2026/06/28 10:01:40 UTC
[PR] chore: camel-jbang - Add SQL query dev-console, TUI tab with inline editing, and MCP tools [camel]
davsclaus opened a new pull request, #24281:
URL: https://github.com/apache/camel/pull/24281
## Summary
- Add `sql-query` dev-console for executing SQL queries and row updates against DataSource beans via JDBC
- Add `camel sql` CLI command for querying databases from the terminal
- Add SQL Query TUI tab with multi-line input, query history (Ctrl+E), datasource switching, and result table
- Add inline row editing: press Enter on a result row to open an edit form, change values, F5 to auto-generate and execute an UPDATE statement (single-table queries only, with PK detection via JDBC metadata)
- Add `tui_execute_sql`, `tui_update_row` MCP tools for AI agents
- Enrich `tui_get_table` MCP response with SQL input state, datasource, selected row, and editability metadata
## Test plan
- [ ] Run a Camel app with a DataSource (e.g. the built-in `sql` example)
- [ ] Open TUI, navigate to SQL Query tab, execute `SELECT * FROM table`
- [ ] Verify results display with row count and elapsed time
- [ ] Tab to results, press Enter on a row — edit form opens
- [ ] Change a value, press F5 — UPDATE executes, table refreshes
- [ ] Verify PK columns are read-only (marked with *)
- [ ] Verify complex queries (JOINs) don't show Edit option
- [ ] Verify Ctrl+E opens query history
- [ ] Verify number keys don't switch tabs during edit mode
- [ ] Test MCP tools: `tui_execute_sql`, `tui_update_row`, `tui_get_table`
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <no...@anthropic.com>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] chore: camel-jbang - Add SQL query dev-console, TUI tab with inline editing, and MCP tools [camel]
Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus merged PR #24281:
URL: https://github.com/apache/camel/pull/24281
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] chore: camel-jbang - Add SQL query dev-console, TUI tab with inline editing, and MCP tools [camel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #24281:
URL: https://github.com/apache/camel/pull/24281#issuecomment-4825708771
:star2: Thank you for your contribution to the Apache Camel project! :star2:
:robot: CI automation will test this PR automatically.
:camel: Apache Camel Committers, please review the following items:
* First-time contributors **require MANUAL approval** for the GitHub Actions to run
* You can use the command `/component-test (camel-)component-name1 (camel-)component-name2..` to request a test from the test bot although they are normally detected and executed by CI.
* You can label PRs using `skip-tests` and `test-dependents` to fine-tune the checks executed by this PR.
* Build and test logs are available in the summary page. **Only** [Apache Camel committers](https://camel.apache.org/community/team/#committers) have access to the summary.
:warning: Be careful when sharing logs. Review their contents before sharing them publicly.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] chore: camel-jbang - Add SQL query dev-console, TUI tab with inline editing, and MCP tools [camel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #24281:
URL: https://github.com/apache/camel/pull/24281#issuecomment-4826384148
<!-- ci-tested-modules -->
:test_tube: **CI tested the following changed modules:**
- `catalog/camel-catalog`
- `core/camel-console`
- `docs`
- `dsl/camel-cli-connector`
- `dsl/camel-jbang/camel-jbang-core`
- `dsl/camel-jbang/camel-jbang-plugin-tui`
:warning: **Some tests are disabled on GitHub Actions** (`@DisabledIfSystemProperty(named = "ci.env.name")`) and require manual verification:
- `dsl/camel-jbang/camel-jbang-core`: 1 test(s) disabled on GitHub Actions
:bulb: **Manual integration tests recommended:**
> You modified `dsl/camel-jbang/camel-jbang-core`. The related integration tests in `dsl/camel-jbang/camel-jbang-it` are excluded from CI. Consider running them manually:
> ```
> mvn verify -f dsl/camel-jbang/camel-jbang-it -Djbang-it-test
> ```
<details><summary>All tested modules (15 modules)</summary>
- Camel :: All Core Sync point
- Camel :: Catalog :: Camel Catalog
- Camel :: Console
- Camel :: DSL :: CLI Connector
- Camel :: DSL :: CLI Debug
- Camel :: Diagram
- Camel :: JBang :: Console
- Camel :: JBang :: Core
- Camel :: JBang :: MCP
- Camel :: JBang :: Plugin :: Route Parser
- Camel :: JBang :: Plugin :: TUI
- Camel :: JBang :: Plugin :: Validate
- Camel :: Launcher :: Container
- Camel :: YAML DSL :: Validator
- Camel :: YAML DSL :: Validator Maven Plugin
</details>
---
:gear: [View full build and test results](https://github.com/apache/camel/actions/runs/28324600462)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org