docs: add a runnable SQLite end-to-end example - #21
Open
dchaudhari7177 wants to merge 1 commit into
Open
Conversation
The shortest path from a database a user already has to a list of findings: build a local table, scan it, read the issues and the score. No external service, credentials, API key or LLM. create_database.py plants one flaw per row -- an impossible date, a malformed email, a negative quantity, a missing price, an exact duplicate and an empty country -- rather than corrupting rows randomly, so each finding maps to an obvious cause and the output is identical on every machine. Every command and every block of output in the README was captured from a clean run of this example. Repairs are deliberately left out and pointed at examples/demo/, since they are a reviewed step rather than a first-run one.
|
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.



Closes #14
examples/integrations/sqlite/— a database, a scan, and the findings, with nothing external involved.Every command and every block of output in the README was captured from a real run, then re-run from a clean state to confirm it reproduces. The numbers in the README are the numbers you get.
What is in it
create_database.py— buildsshop.db, oneorderstable, 14 synthetic rowsREADME.md— the six steps, with real output.gitignore— keepsshop.dband.datasentry/out of the repositoryOne deliberate choice
The flaws are planted one per row rather than randomly corrupted:
2026-02-30— a date that does not existnot-an-emailquantityof-2unit_pricemissingcountryTwo reasons. Each finding traces to one visible cause, so a reader learns what a detector is for. And the same database produces the same 15 issues and the same 94.7 on every machine, which is what makes the documented output checkable rather than illustrative.
The verified run
Two things the README explains rather than glosses over, because both would otherwise read as bugs on a first run:
"status": "failed"is the gate, not a crash. The scan ran; the data did not pass. Saying so is what makes the CI use case land.consistency,integrityandtimelinessreadNone. Nothing in a single-table first scan can score them — they need a contract or a previous scan — and the weights renormalize across the dimensions that were scored, so an absent dimension does not quietly count as a pass.Constraints
datasentry repairis a reviewed propose → preview → apply loop, and the README says so explicitly and links toexamples/demo/rather than silently omitting itLinked from
examples/README.mdin the goal table, placed above the ecommerce row since it is the smaller starting point.