Skip to content

feat(sql): add DDL support, custom tables, and WHERE filter fixes#2

Merged
harehare merged 2 commits into
mainfrom
feat/sql-ddl-and-fixes
Jun 3, 2026
Merged

feat(sql): add DDL support, custom tables, and WHERE filter fixes#2
harehare merged 2 commits into
mainfrom
feat/sql-ddl-and-fixes

Conversation

@harehare

@harehare harehare commented Jun 3, 2026

Copy link
Copy Markdown
Owner
  • Add CREATE TABLE (empty or AS SELECT), INSERT INTO, DROP TABLE [IF EXISTS]
  • Add DESC/DESCRIBE and SHOW TABLES commands
  • Add DocumentStore::register_table / unregister_table for programmatic custom tables
  • Use RwLock for custom_tables so SqlEngine can execute DDL via &DocumentStore
  • Fix to_table() newline normalization: replace \n/\r in cells to prevent layout breaks
  • Fix analyze_where_for_index: DepthExact(0) and LangExact("") now fall back to FullScan, preventing false-negative results for non-heading and non-code blocks

harehare added 2 commits June 3, 2026 21:17
- Add CREATE TABLE (empty or AS SELECT), INSERT INTO, DROP TABLE [IF EXISTS]
- Add DESC/DESCRIBE and SHOW TABLES commands
- Add DocumentStore::register_table / unregister_table for programmatic custom tables
- Use RwLock<HashMap> for custom_tables so SqlEngine can execute DDL via &DocumentStore
- Fix to_table() newline normalization: replace \n/\r in cells to prevent layout breaks
- Fix analyze_where_for_index: DepthExact(0) and LangExact("") now fall back to FullScan,
  preventing false-negative results for non-heading and non-code blocks
- Collapse nested if-let + if into a single if-let with && guard
- Extract complex RwLock<HashMap<String, (Vec<String>, Vec<Vec<String>>)>>
  into a CustomTable type alias to address type_complexity warning
@harehare harehare merged commit 656cf4f into main Jun 3, 2026
6 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.

1 participant