nowfound

Dev tools · November 24, 2024

Trilogy – A Reusable, Composable SQL Experiment

Recipe: Add a semantic layer to SQL; use it drop the requirement for joins/group_by; add in type-checking and a lightweight python-esque import syntax to enable reuse and hierarchical querying. Trilogy is intended to provide an accessible but deep alternative to raw SQL. It offers a new-but-inspired-by-SQL syntax that compiles to various dialects of SQL (with DuckDB as the default). The target audience is people that really like SQL for analytics and data engineering, but want less boilerplate and sharp edges and looser coupling to the DB. Semantic models can be easily shared, composed…

Trilogy – A Reusable, Composable SQL Experiment launched on November 24, 2024 with 78 votes, #462 of 4,990 launches that month and more than 90% of that year's launches. The site was still online in September 2026, 1 year on.

Visit trilogydata.dev ↗Alternativestop 9% of November 2024

In plain words

Trilogy is a SQL alternative that adds a semantic layer to reduce boilerplate like joins and group-by clauses. It uses a Python-inspired syntax with type-checking and a reusable import system, compiling to various SQL dialects including DuckDB. Designed for analysts and data engineers who prefer SQL but want cleaner code and looser database coupling, Trilogy enables interactive semantic model composition and sharing while maintaining SQL's ad-hoc workflow capabilities. It includes experimental ETL and DBT integration support.

written from the facts on this page · September 2026

From the sources

Simply SQL

This demo uses the popular TPC-DS dataset, often used to benchmark performance for databases. We’ll use it a little differently here. DuckDB can generate a representative data warehouse from TPC-DS using a simple extension, and we’ll use that to explore Trilogy syntax. You can read more about Trilogy and our use of this benchmark here . This demo uses a backing service that may take a few seconds to cold-start; follow-up queries should be fast. This service uses DuckDB. Trilogy is database-agnostic: the same syntax works on any backend, such as Postgres, BigQuery, or Snowflake. TPC-DS provides a nice, tidy warehouse: 17 dimension tables and 7 fact tables. That’s a lot to work with!…from trilogydata.dev

In the maker’s words, at launch

Recipe: Add a semantic layer to SQL; use it drop the requirement for joins/group_by; add in type-checking and a lightweight python-esque import syntax to enable reuse and hierarchical querying. Trilogy is intended to provide an accessible but deep alternative to raw SQL. It offers a new-but-inspired-by-SQL…

Does a similar job

all alternatives →
  • Sherloq2024 · ▲545

    Collaborative AI repository for SQL users

  • Natural-SQL-7B, a strong text-to-SQL model2024 · github.com · ▲362

    Would love thoughts! Here is the HF page: https://huggingface.co/chatdb/natural-sql-7b

  • I wrote a RDBMS (SQLite clone) from scratch in pure Python2023 · github.com · ▲371

    I wrote a relational database management system (RDBMS) (sqlite clone) from scratch in pure Python.

  • Using SQL's Turing completeness to build Tetris2024 · github.com · ▲338

    Using SQL's Turing Completeness to Build Tetris. Contribute to nuno-faria/tetris-sql development by creating an account on GitHub.

  • HA
    Hashquery, a Python library for defining reusable analysis2024 · hashquery.dev · ▲67

    Hi all, we recently open sourced the first version of Hashquery, a Python library which lets you model analytics, DRY up common logic, and execute it against a database or warehouse. We were originally rendering SQL directly for all our queries, but that spiraled out of control with more complex analysis; the SQL needed to be changed sporadically for each new database dialect (BigQuery, Redshift, Aethena, Postgres, etc etc) and the SQL fragments were very challenging to reuse (and so fragments were copy-pasted all over). ~~~ Advantages we think it has over writing SQL by hand: - Queries are…

  • Csql – Python lib for composeable SQL queries2020 · github.com · ▲89

    Contribute to akdor1154/python-csql development by creating an account on GitHub.

More dev tools this month

the category →
  • /dev/null▲481

    a social network for devs

    Dev tools · 2d ago · dev-null.sh

  • open-source IDE for thoughtful software design. Contribute to devdotfast/whiteboard development by creating an account on GitHub.

    Dev tools · 27d ago · github.com

  • Contribute to reladraw/reladraw development by creating an account on GitHub.

    Dev tools · 25d ago · github.com

  • OpenBot▲362

    Grok Bot alternative: free, local, open-source, multiplayer

    Dev tools · 22d ago · openbot.run

  • Talanoa▲341

    Hi HN, I’m a fullstack developer, and honestly, I’ve lost count of how many side projects I’ve worked on over the years. But one idea kept coming back to me: a different kind of email client. It first came to me in 2014: “What if we could handle emails more like conversations?” Every year, I’d revisit this concept in my “Build Notes.” Ten years later, no one had built exactly what I had in mind — so I finally decided to do it myself. That’s how Talanoa was born. I wanted something focused on people, not timelines. I was tired of marking messages as unread just to remember to reply later, or…

    Dev tools · 20d ago · talanoa.email

  • CoreSpeed▲332

    One MCP for everything your agents need: apps, memory, tools

    Dev tools · 28d ago · corespeed.io

Source: Show HN post ↗ · launch text quoted in part

Launched alongside, November 2024

the whole month →
  • Lovable▲1,477

    Hey HN! Previous CERN physicist turned hacker here. We've developed a way to make AI coding actually work by systematically identifying and fixing places where LLMs typically fail in full-stack development. Today we're launching as Lovable (previously gptengineer.app) since it's such a big change. The problem? AI writing code typically make small mistakes and then get stuck. Those who tried know the frustration. We fixed most of this by mapping out where LLMs fail in full-stack dev and engineering around those pitfalls with prompt chains. Thanks to this, in all comparisons I found with: v0,…

    AI · 2024 · lovable.dev

  • Superchat▲1,427

    AI Agents for WhatsApp Business, Instagram & Co

    Growth · 2024 · superchat.com

  • Postiz▲1,188

    Streamline your social media with Postiz. Schedule posts, analyze performance, and manage all accounts in one place.

    Dev tools · 2024 · postiz.com

  • I wasn't quite sure if this qualified as "Show HN" given you can't really download it and try it out. However, dang said[0]: > If it's hardware or something that's not so easy to try out over the internet, find a different way to show how it actually works—a video, for example, or a detailed post with photos. Hopefully I did that? Additionally, I've put code and a detailed guide for the netboot computer management setup on GitHub: https://github.com/kentonv/lanparty Anyway, if this shouldn't have been Show HN, I apologize! [0]…

    Dev tools · 2024 · lanparty.house

  • Unlock a new level productivity with AI, Cloud Sync and more

    Work · 2024 · raycast.com

  • Cap▲1,047

    Beautiful screen recordings, owned by you. 100% open source.

    Dev tools · 2024 · cap.so