Repository navigation
Culprit SQL Studio 0.4.1
Fixes
- DDL linter, auto-fix and editor quick fixes. Preserves trailing
--line comments when appending online DDL clauses (ALGORITHM=INPLACE, LOCK=NONE,WITH (ONLINE = ON)), handles PostgreSQL dollar-quoted strings ($$…$$,$tag$…$tag$), MySQL backtick identifiers, SQL Server bracketed identifiers and escaped quotes across multi-statement scripts, and deduplicatesunindexed-fkindex fixes. In the desktop SQL editor, applying a quick fix on an unindexed foreign key appends the newCREATE INDEXstatement instead of replacing theALTER TABLEstatement. - CLI, SARIF and MCP
lint-sqloutput. Multi-fileculprit lint-sqlruns aggregate cleanly across--format text,--format md,--format jsonand--format sarifwith accurate 1-based file and statement spans (including statements with backtick-quoted identifiers). MCPlint_sqlnow includessummary,fix,fix_sqlandverifyinline on transient DDL findings, andplan_insightsrecords itssqlargument in the MCP audit log. - Schema drift and provider collectors.
culprit driftnow compares foreign-keyON DELETErules (CASCADEvsNO ACTION), disabled/invalid indexes and index operator classes, and redacts literals inside partition bound expressions when exporting reports. SQLite catalog collection handles multiline indexON/WHEREclauses and word-bounded trigger events (UPDATEvsUPDATE OF col_name). PostgreSQLexplain --with-index(HypoPG) strips--line comments before creating virtual indexes. - Query-log ingestion (
culprit-querylog). Fixes a slice boundary panic on short timestamp prefixes, recomputes observation windowfirst/lastbounds after filtering multi-database logs, and captures structured JSONL error events without durations.
Full Changelog: v0.4.0...v0.4.1