Loading…
0+ curated questions with the same answer shape every time: quick recap, deep dive, pitfalls, and follow-ups. Coverage includes .
Sequel and raw SQL questions come up when interviewers want to test whether you understand the ORM vs the database layer. This module covers the Sequel gem — Model vs Dataset API, explicit vs Active Record's implicit approach, Sequel plugins (timestamps, validation_helpers, associations), when raw SQL is the right tool (complex CTEs, window functions, COPY for bulk import, database-specific features), find_by_sql and connection.execute in Active Record, sanitize_sql_array for safe interpolation, the danger of string interpolation in SQL (SQL injection), and the Active Record vs Sequel trade-off (Sequel: more explicit, composable, multi-database; Active Record: Rails integration, convention, ecosystem).
Full catalog
Topics are ordered for learning. Within each topic, rows are numbered 1–0 globally so you always know where you are. Collapse topics if you want a lighter view — use Expand all when you need the full list again.
Numbers 1–0 follow the order we recommend — click any row to open the full answer, or use the sticky Next link at the bottom of each page to go Q1 → Q0.