[#7131] Wrap the Table type in an implicit Scala class to allow for writing t.*

This commit is contained in:
lukaseder 2018-02-01 15:24:02 +01:00
parent 266d87f206
commit 34f10a99b8

View File

@ -195,6 +195,14 @@ object Conversions {
// Traits
// -------------------------------------------------------------------------
/**
* A Scala-esque representation of {@link org.jooq.Table}, adding overloaded
* operators for common jOOQ operations to arbitrary tables
*/
implicit class ScalaTable[R <: Record](val table : Table[R]) extends AnyVal {
def * : QualifiedAsterisk = table.asterisk
}
/**
* A Scala-esque representation of {@link org.jooq.Field}, adding overloaded
* operators for common jOOQ operations to arbitrary fields