I'm new to kotlin, not sure how to do it properly
# exposed
a
I'm new to kotlin, not sure how to do it properly
h
check out the readme.md on the github page: https://github.com/Jetbrains/Exposed/
a
There are no such examples. What i need is something like this:
Table.select { generateSelectFunc(a, b, c) }
a
I still don't see it. I need to wrap
Table.select { id eq 1 }
into a function like this
Table.select { getId() }
h
what are you trying to achieve?
a
I have complex primary key with multiple columns and i want to wrap it into a func to not copy paste it every time
h
you can make a function on SqlExpressionBuilder
Copy code
fun SqlExpressionBuilder.validateIdIs(num: Int) = id eq num
a
Oh, what will help, thanks!
👍 1