Back to browse
GitHub Repository

A lightweight, embeddable SQL parser designed for SQLite-based applications. It parses SQL statements into a structured representation that can be inspected, analyzed, or transformed programmatically.

19 starsC

An Embeddable SQLite Parser

by marcobambini·Mar 12, 2026·1 point·0 comments

AI Analysis

●●SolidWizardryNiche Gem

424k statements/sec with zero dependencies — sqlparse can't match this performance.

Strengths
  • Grammar extracted from SQLite's own parse.y ensures complete dialect coverage
  • Arena allocation means one arena_destroy() frees entire AST instantly
  • Tolerant parsing continues past errors for IDE and linter integration
Weaknesses
  • C-only API limits adoption; needs Python, Rust, Go bindings
  • SQL parser space has sqlparse, pglast, tree-sitter-sql already
Target Audience

Database tool developers, C/C++ engineers

Similar To

sqlparse · pglast · tree-sitter-sql

Similar Projects

AI/ML●●Solid

PardusDB – SQLite-like vector database in Rust

Using a single-file .pardus format with CREATE/INSERT/SELECT + SIMILARITY queries gives a very familiar developer UX for embedding storage. The combination of graph-based ANN, full transactions, thread-safety, and zero external dependencies is an uncommon and useful engineering combo for local-first AI work; it would win more attention with benchmark comparisons and richer ecosystem integrations (connectors/clients).

Niche GemWizardry
JasonHEIN
204mo ago