I think I'm on the right track with this (Kotlin):
fun crossJoinSpec(): TableLike<Record> {
val _sb = StringBuilder("{json_to_recordset}({0}) as {1}(")
columns.forEachIndexed { i, selectField ->
if ( i != 0 ) _sb.append(", ")
_sb.append(selectField)
_sb.append(" ")
_sb.append(selectField.dataType.castTypeName)
}
_sb.append(")")
return DSL.table(_sb.toString(), sourceField, columns.first())
}
--
You received this message because you are subscribed to the Google Groups "jOOQ
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.