On using Batch API like below, apply method complains "No implicits found for parameter factory: Factory[Int, C_[Int]]". How can I get rid of this error?
DBs.setupAll()
DB localTx { implicit session =>
val batchParams: Seq[Seq[Any]] = (2001 to 3000).map(i => Seq(i, "name" + i))
sql"insert into emp (id, name) values (?, ?)".batch(batchParams: _*).apply()
}
Thanks,
Sandeep
implicit val intFactory = implicitly[Factory[Int, Seq[Int]]]