I'm not sure what the best way to do this, but to work with arrays in Postgres, we need access to the connection object to call a method on it:
val sqlArray = connection.createArrayOf("uuid", products.toArray.asInstanceOf[Array[AnyRef]])
When products was an Iterable...
It'd be nice if this could be folded into prepare in Utils.scala somehow, but not sure how given the type name parameter...
Thoughts?
I'm not sure what the best way to do this, but to work with arrays in Postgres, we need access to the connection object to call a method on it:
When products was an Iterable...
It'd be nice if this could be folded into prepare in Utils.scala somehow, but not sure how given the type name parameter...
Thoughts?