News for hackers. Stuff that matters.
Re:Writing Composable SQL Using Knex and Pipelines by ajfriend on Thursday November 28, 2024 @12:58PM (#42267287)
One approach I've been enjoying recently in my personal use is to write a light wrapper around DuckDB to enable composable SQL snippets. Essentially like what I have here https://gist.github.com/ajfriend/eea0795546c7c44f1c24ab0560a..., but without the `|` syntax.

You're still writing SQL, so you don't need to learn a new syntax, but I find it more ergonomic for quick data exploration. I also have an easier time writing SQL from memory than I do writing the equivalent Pandas code.

There are no comments on this comment yet.