How to Query (Almost) Everything

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

Trustfall is a query engine that lets you query almost any data source — APIs, file formats, source code — using a unified graph-based query language. The author describes how their former employer used it to run ~40 cross-domain checks on every pull request, catching bugs like Python version mismatches between pyproject.toml and Dockerfiles, or type hints that are never actually checked by mypy. The system runs in ~0.3s per PR and prevented countless production incidents. Trustfall is architected like a compiler (front-end, IR, back-end) and requires only a small adapter (~hundreds of lines) to plug in a new data source. It now powers cargo-semver-checks for Rust semantic versioning checking.

18m read timeFrom predr.ag
Post cover image
Table of contents
OutlineProblem: Querying non-database data is hardAgenda: Querying everything is valuable, and easier than it looksNever debug the same problem twiceBasics of querying everythingDemo: What GitHub Actions are used in projects popular on HackerNews?How Trustfall executes queriesWhy plugging in a new dataset is easyWe've only scratched the surface!