Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
95c7ab0
docs(sql): add design and plan documents for sqlglot-based implementa…
kibarik May 16, 2026
6d117e6
deps(sql): add sqlglot>=30.0,<32, remove tree-sitter-sql
kibarik May 16, 2026
4d62baa
feat(sql): add sqlglot-based special handler skeleton
kibarik May 16, 2026
41163d9
feat(sql): implement AST-based symbol extraction with regex fallback
kibarik May 16, 2026
1bd85dd
fix(sql): clean up redundant checks and simplify regex pattern
kibarik May 16, 2026
0f830a1
feat(sql): route SQL parsing to sqlglot special handler
kibarik May 16, 2026
1a71855
feat(sql): update LanguageSpec to use special_handler
kibarik May 16, 2026
b184cf7
test(sql): update fixture with all 6 symbol types
kibarik May 16, 2026
7e7c747
fix(sql): correct trigger syntax and index column reference in test f…
kibarik May 16, 2026
92cf66a
test(sql): add comprehensive integration tests for all 6 symbol types
kibarik May 16, 2026
811aac1
fix(sql): call statement.sql() method instead of referencing method o…
kibarik May 16, 2026
80f170e
docs(sql): move SQL from Config/Data to Good tier with sqlglot parser
kibarik May 16, 2026
c82ea77
test(sql): verify end-to-end sqlglot implementation - all tests passing
kibarik May 17, 2026
765a102
fix(sql): handle BOM in SQL files - use utf-8-sig encoding
kibarik May 17, 2026
c7e5b3d
fix(sql): filter out temporary tables from symbol extraction
kibarik May 17, 2026
bb1dc62
chore: remove serena and planning docs from repository
kibarik May 17, 2026
3b7d016
chore: remove SQL planning docs pattern from gitignore
kibarik May 17, 2026
0d6dbd4
refactor(sql): improve temp table filtering - fix code review issues
kibarik May 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ ehthumbs.db
# Claude Code
.claude/

# Serena MCP server
.serena/

# Superpowers planning docs
docs/superpowers/

# repowise API keys (local)
.repowise/.env

Expand Down
2 changes: 1 addition & 1 deletion docs/LANGUAGE_SUPPORT.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ resolvers for each language.
| **Swift** | `.swift` | `main.swift` `App.swift` | `import Foundation` with SPM `Package.swift` `targets:` → directory mapping |
| **Scala** | `.scala` | `Main.scala` `App.scala` | `import pkg.{A, B => C}` with SBT `build.sbt` / Mill `build.sc` multi-project parsing |
| **PHP** | `.php` | `index.php` `public/index.php` | `use Foo\Bar\Baz` with composer.json `autoload.psr-4` longest-prefix resolution |
| **SQL** | `.sql` | -- | No imports/heritage; sqlglot parser handles T-SQL, PostgreSQL, MySQL |

### Config / Data

Expand All @@ -89,7 +90,6 @@ endpoints or targets where applicable.
| **JSON** | `.json` | -- |
| **TOML** | `.toml` | -- |
| **Markdown** | `.md` `.mdx` | -- |
| **SQL** | `.sql` | -- |
| **Shell** | `.sh` `.bash` `.zsh` | -- |

### Partial (Luau — Roblox)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -971,8 +971,8 @@
tag="sql",
display_name="SQL",
extensions=frozenset({".sql"}),
is_code=False,
is_passthrough=True,
is_code=True,
is_passthrough=False,
),
LanguageSpec(
tag="openapi",
Expand Down
5 changes: 4 additions & 1 deletion packages/core/src/repowise/core/ingestion/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,10 @@ def parse_file(self, file_info: FileInfo, source: bytes) -> ParsedFile:
)

# Delegate to special handlers for non-tree-sitter formats
if lang in ("openapi", "dockerfile", "makefile"):
if lang == "sql":
from .special_handlers.sql import parse_sql_file
return parse_sql_file(file_info, source)
elif lang in ("openapi", "dockerfile", "makefile"):
from .special_handlers import parse_special

return parse_special(file_info, source, lang)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Special handlers for specific file types."""
Loading
Loading