They say a picture is worth 1000 words, but in this case we'll settle for 3.
Sequel, at its core, is SQL in ruby.