~/talk

Polymorphic Record Types in a Limited Embedding

Talkat Scala Days Berlin 2016 · 2016-06-15..06-17· [databases]
links:none on file
slides:none on file

Shows how Slick’s lifted embedding uses a Shape abstraction and Scala’s functional dependencies (added in 2.8) to treat ordinary Scala tuples and HLists as database record types, with concrete encodeRef/toNode and pack/packedShape implementations. Demonstrates a simplified toy Slick ABuilder, the fix for encoding paths by packing mapped results, and a generated suite of tuple shapes up to 22. The implementation compiles and runs, and HList support requires only a few lines.

AI-written summary · about

  1. 0:00Introduction to slick
  2. 2:00Lifted embedding overview
  3. 4:21Abstract syntax tree design
  4. 6:26The rep type hierarchy
  5. 9:38Primitive values and tables
  6. 16:30Implementing tuples
  7. 19:26Polymorphic record types
  8. 21:12Functional dependencies
  9. 26:43Understanding shapes
  10. 32:21Shape implementation details
  11. 35:05Query execution and logic
  12. 36:44Filter and map operations
  13. 42:01HLists 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.