5min chapter

Elixir Mix cover image

PostgreSQL Queries with Michael Fich - EMx 190

Elixir Mix

CHAPTER

JSON, B to Records in PostgreSQL

Trying to translate raw SQL into ECTO also proved to have a couple of challenges off its own. We found a function that's kind of a native function within Postgres called JSON, B to records That where we can look at like taking that array ofJSON objects with like however deeply nested it might be in the column. So trying to find a way to coherently write like reusable query was another challenge for us. And one of the things with Ecto is that each time you're doing a from statement or a join it automatically appends its own as keyword on do it.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode