Open
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Adds sqlite database handler as requested in #2095
I can't find a more elegant way than copying the sqlite database to a new file; no sqlite drivers support opening a database from a Read/Write interface instead of a "real" file. That said, I tried to keep the costly operations at a minimum and chunk as small as possible (row).
Does not introduce any new test or lint failures.
Note
Medium Risk
Adds a new file-processing path that opens and queries SQLite databases (including temp-file writes) and introduces the
modernc.org/sqlitedependency, which could affect performance and error handling on large/hostile DB inputs.Overview
Adds first-class handling for SQLite database files (
application/vnd.sqlite3). The newsqliteHandlercopies the input to a temp file, opens it viamodernc.org/sqlite, enumerates tables, and emits each row (YAML-serialized with a__table__tag) through the existing chunking pipeline for scanning.Updates handler selection to route SQLite MIME types to the new handler and adds a basic unit test validating the handler produces expected output counts. Dependency updates include adding
modernc.org/sqlite(and its indirect deps) and bumping a few Go module versions (e.g.,github.com/google/pprof,golang.org/x/exp,golang.org/x/tools).Written by Cursor Bugbot for commit 7f4301a. This will update automatically on new commits. Configure here.