~/talk

Building an ORM with AReL: Walking up the (AS)Tree.

Talkat GoGaRuCo 2014 · 2014-09-19..09-20· [databases, ruby-on-rails]
slides:none on file

Builds a working tiny ORM called storm on top of ARel, using the pg gem and a Postgres visitor to generate SQL; implements schema caching, Column->Type mapping (string/integer plus a generic fallback), attribute sets with reader/writer singleton methods, and ARel insert/update/delete managers to perform create, find, update, destroy and count. The result is a complete CRUD engine in ~560 lines of code that runs against PostgreSQL and passes the demo tests.

AI-written summary · about

  1. 0:00Introduction and context
  2. 2:51Understanding ORMs
  3. 5:43Core architecture and setup
  4. 9:42Database connections and schema
  5. 14:00Setting up tests
  6. 16:42Attributes and typecasting
  7. 21:00Readers and writers
  8. 23:36CRUD operations and conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.