Skip to content

Comment on Build API integrations with SQL and YAML – no SaaS lock-in, no drag-and-drop UIs

Comments

Fuses API execution with SQL logic to provide an open, flexible platform (…)

But there’s a gigantic multi line string in your yaml. Full of Python.

The Python here is doing exactly what it should - extracting nested data and flattening it into proper relational tables. Most of the 'Python' is actually just the return statement defining table schemas. The schema can be defined separately and reused across API calls. With such reuse the Python part would be really compact. This is the right balance between declarative config and the flexibility needed for real-world API responses. I can confirm it from my experience developing many integrations with Sequor - this approach handles real-world complexity much better than pure declarative tools.

Scroll down and you’ll see the example with raw SQL.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.