~/talk

NamedTuples in Action

Talkat Scalar 2026 · 2026-03-26..03-27· [databases, scala]
links:none on file
slides:none on file

Demonstrates generating SQL from Scala case classes by borrowing named tuples from Scala 3.7 to get field names and using match types to unwrap Option so navigation through nested optional fields preserves types and produces column paths. Builds a query builder that composes filters, projections, and joins into SQL strings and an implementation called USQL JDBC wrapper that generates inserts and updates, is type safe with autocomplete, is beta and works in practice though it skips aliasing/escaping and hits a Scala compiler bug when deriving one mapping automatically.

AI-written summary · about

  1. 0:00Introduction
  2. 1:50Case classes goals
  3. 3:36SQL solution limits
  4. 5:41Named tuples to solve
  5. 8:10Field navigator with tuples
  6. 13:32Tracking types in optionals
  7. 14:15Core SQL types
  8. 16:25Query builder generation
  9. 19:37Joins in SQL generation
  10. 20:46Demo: generated SQL
  11. 21:28USQL library intro
  12. 22:53USQL practical example
  13. 23:13Conclusion and Q&A
~/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.