I have the following column in my postgres table:
ALTER TABLE my_table
ALTER COLUMN test_field TYPE text ARRAY USING test_field::text ARRAY
When I regenerate the Slick schema directly from my postgres table, I have the following"
* @param test_field Database column test_field SqlType(_text), Length(2147483647,false), Default(None) */
case class MyTable(id: java.util.UUID, created: Option[java.sql.Timestamp] = None, test_field: Option[String] = None)
/** GetResult implicit for fetching MyTable objects using plain SQL queries */
implicit def GetResultTable(implicit e0: GR[java.util.UUID], e1: GR[Option[java.sql.Timestamp]], e2: GR[String] = GR{
prs => import prs._
MyTable(<<[java.util.UUID], <<?[java.sql.Timestamp],<<?[String])
}
I am not sure as why the field is not recognised as Option[Array[String]] , Where did I go wrong?
Thanks
_textis recognised as the following: ``` val test_field: Rep[Option[scala.collection.Seq]] = column[Option[scala.collection.Seq]]("test_field", O.Default(None))``` lamentingType scala.collection.Seq takes type parameters. If I pas String as a type parameter then complains about implicit. Any idea?