Lynn's Dev Blog
  • About
  • Rails
  • Ruby
  • Experience
Sign in Subscribe

SQL

A collection of 1 post
How I learned to write raw SQL
experience

How I learned to write raw SQL

In my daily job, I mainly use Rails framework. To make code readable and maintainable, we seldom write raw SQL in the codebase. Instead, we use Rails's ActiveRecord::QueryMethods module which helps developers write beautiful queries quickly. For example, School.joins(:students).where('students.age > ?', 7).limit(100) Recently,
Aug 25, 2022 2 min read
Page 1 of 1
Lynn's Dev Blog © 2023
Powered by Ghost