RSSAmplifier

HYBRD Posts · Oct 15, 2021

Better SQL in Ruby with the sql_query gem

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

I’ve been writing a lot of SQL lately, as evidenced by my last couple posts . I was working on a particularly long query the other day when I thought, “it would be nice I could write SQL using partials to manage duplicated logic.” One quick Google search confirmed I was not the only one with that idea. The sql_query Ruby gem lets you write and load SQL queries using ERB templates. I had a large…

Read on hybrd.co

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.