TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How Arel Converts Ruby Queries into SQL Statements

21 pointsby moritzplassnigalmost 10 years ago

2 comments

outworlderalmost 10 years ago
&gt;This algorithm is an example of the “visitor pattern.” The term visitor pattern simply means that some object, function or other piece of code is executed once for each node in some data structure, such as an array, linked list or tree.<p>Hm. Isn&#x27;t that a (map)?
评论 #9807744 未加载
评论 #9807439 未加载
评论 #9807480 未加载
评论 #9807485 未加载
评论 #9807250 未加载
phpnodealmost 10 years ago
I never really understood how Arel is any different to the query builders which exist in most frameworks, does anyone know the details?