Skip to content

Instantly share code, notes, and snippets.

@cheptsov
Last active December 20, 2015 01:59
Show Gist options
  • Save cheptsov/6052798 to your computer and use it in GitHub Desktop.
Save cheptsov/6052798 to your computer and use it in GitHub Desktop.
Support for type-safe wildcards in selects using Expose library
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