orangy / squash

SQL access DSL for Kotlin
265 stars 16 forks source link

QueryCompound is a sealed class #1

Open emrul opened 7 years ago

emrul commented 7 years ago

Hi,

I wanted to add a dialect specific join (Postgres' LATERAL - described here However org.jetbrains.squash.query.QueryCompound is a sealed class which prevents me from adding it.

Is there some other way I should be adding additional join types?

orangy commented 7 years ago

From the documentation it looks like it's a modifier on a sub-query, rather then variation of a JOIN. So may be you need a wrapping compound element that takes a SubQueryExpression?

emrul commented 7 years ago

I will try and let you know