Skip to content

Conversation

@sundy-li
Copy link
Member

@sundy-li sundy-li commented Oct 17, 2025

This PR introduces a comprehensive SQL query interface to BendSQL with an embedded web UI, featuring a modern CodeMirror-based SQL editor with syntax highlighting and dual routing support.

Overview

This PR introduces a comprehensive SQL query interface to BendSQL with an embedded web UI, featuring a modern CodeMirror-based SQL editor with syntax highlighting and dual routing support.

New Features

SQL Query Interface

command ./target/debug/bendsql --ui to start ui which connects to to specified dsn

  • Interactive SQL Editor: Added a new React-based SQL query interface with CodeMirror integration
  • Dual Routing System:
    • /perf/* routes to ProfileGraphDashboard (performance analysis)
    • All other routes default to SQLQuery interface
  • Query Execution: Full SQL query execution with result display in tabular format
  • Query Sharing: Support for sharing queries via unique URLs with database-generated query IDs

Backend Changes

  • DuckDB Removal: Removed platform-specific DuckDB dependencies from CLI
  • Introduce !install duckdb command and gendata will call duckdb cli to generate tpch/tpcds data now

@sundy-li sundy-li changed the title Add SQL Query Interface feat: Add SQL Query Interface Oct 17, 2025
@sundy-li sundy-li requested review from b41sh and everpcpc October 17, 2025 09:00
@sundy-li sundy-li requested a review from everpcpc October 17, 2025 09:11
@sundy-li sundy-li merged commit 654a943 into databendlabs:main Oct 17, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants