https://kotlinlang.org logo
#exposed
Title
# exposed
e

Endre Deak

02/17/2021, 5:06 PM
Is there a nice and easy way to go through a query and make sure there are no duplicated table names in there?
j

Joel

02/18/2021, 6:20 PM
@Endre Deak can you give me a bit of an example? The DSL is a pretty WYISWYG wrapper on SQL, in that if you add something in Kotlin, you'll see some artifact of it in SQL.
e

Endre Deak

02/18/2021, 6:26 PM
@Joel yeah. I’m working on a query transformer and there are cases when the same table / column is used multiple times and I thought I can avoid collision by calling the non-existing magical
query.resolveDuplicateAliases()
method. But in the meantime I figured out I can deal with it in an earlier stage of my model transformation.
👍 1
3 Views