KuceraMartin / tyqu

Type-safe Queries
Apache License 2.0
50 stars 3 forks source link

Consecutive mappings #7

Closed KuceraMartin closed 1 year ago

KuceraMartin commented 1 year ago

How to translate this?

from(table).map{ t => (t.firstName, t.age.as("a")) }
  .sortBy(_.a)
  .map(_.firstName)

Solutions:

KuceraMartin commented 1 year ago

subqueries sound good

KuceraMartin commented 1 year ago

can we compare case classes by reference equality?

KuceraMartin commented 1 year ago

eq

KuceraMartin commented 1 year ago

(closed by https://github.com/KuceraMartin/tyqu/pull/24)