orangy / squash

SQL access DSL for Kotlin
265 stars 16 forks source link

Make join criteria optional #19

Open raderio opened 5 years ago

raderio commented 5 years ago

At the moment

from(Citizens)
    .innerJoin(Cities) { Cities.id eq Citizens.cityId }
    .select(Citizens.name, Cities.name)

the criteria can be deduced automatically

from(Citizens)
    .innerJoin(Cities)
    .select(Citizens.name, Cities.name)

Or maybe even implicit join like in JOOQ https://blog.jooq.org/2018/02/20/type-safe-implicit-join-through-path-navigation-in-jooq-3-11/