~/talk

Tyqu: Typesafe SQL Queries in Scala

Talkat Scala Days 2023 Madrid · 2023-09-12..09-14· [scala, databases]
links:none on file
slides:none on file

Tyqu is a LINQ-like Scala library that guarantees type safety for query shapes and returned rows by generating compile-time structural types while doing runtime SQL generation; it uses Scala 3 features (match types, macros, type-level ops, explicit nulls) and demo code runs against a Disco sample DB and returns real rows. The library currently emits many subqueries (joins often become subqueries), does not yet support insert/update/delete or explicit join clauses, has nearly working prepared-query support, and currently compiles on Scala 3.2 (Scala 3.3 causes a compiler crash).

AI-written summary · about

  1. 0:00Introduction
  2. 0:29Story of Tyqu
  3. 3:09Disco Database
  4. 3:54Query Problems
  5. 5:17Query Problems Examples
  6. 8:24Why Scala
  7. 9:03Structural Types
  8. 11:30Indot
  9. 12:19Tyqu schema
  10. 13:38Querying
  11. 16:48Demo
  12. 23:03Tyqu Implementation
  13. 24:32Query Builder
  14. 28:49Translation
  15. 31:11Future work
  16. 34:13Insert update delete
  17. 35:15Conclusion
~/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.