Last active
December 20, 2015 01:59
-
-
Save cheptsov/6052798 to your computer and use it in GitHub Desktop.
Support for type-safe wildcards in selects using Expose library
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object Cities : Table() { | |
val id = id("id", autoIncrement = true) | |
val name = varchar("name", 50) | |
val all = id + name | |
} | |
select (Cities.all) forEach { | |
val (id, name) = it | |
println("$id: $name") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment