PgDate2Support
is availabe for slick 3.1.1 as an addon, you can use libraryDependencies += "com.github.tminglei" %% "slick-pg_date2" % "0.14.6"
to refer it. But in master for slick 3.2, I merged it into the main jar.
select ARRAY(select stringfield from foos)
yet.
When I'm trying to use slick-pg driver (https://pastebin.com/Z3XeXVSJ; as you can see: there is nothing special with it), I get AbstractMethodError
on Scala 2.12.2:
java.lang.AbstractMethodError: Method ru/makkarpov/play/database/DatabaseProfile$MyAPI$.slick$basic$BasicProfile$API$_setter_$Database_$eq(Ljava/lang/Object;)V is abstract
I'm suppose that this is a compiler bug, but I wondered that Googling for this error shows literally nothing.
nativeUpsert
capability is disabled. Right now I have it throw and suggest to DBIO.sequence(insertOrUpdate...)
PgPlayJsonSupport
and PlayJsonImplicits
as shown in several examples but the traits are no longer available using import com.github.tminglei.slickpg._
. I am using the version "com.github.tminglei" %% "slick-pg" % "0.16.0"
. Do any of you know if they have been removed ?
Hi, I have this code:
package postg
import spatutorial.shared._
import scala.concurrent.Future
import javax.inject.Inject
import play.api.db.slick.DatabaseConfigProvider
import play.api.db.slick.HasDatabaseConfigProvider
import scala.concurrent.ExecutionContext.Implicits.global
import MySlickPg.MyPostgresProfile.api._
class CPreciosPg {
private class tabla(tag: Tag) extends Table[Precios](tag, "tblofic") {
def id_comparativo = column[String]("id_comparativo")
def rfc = column[String]("rfc")
def cve_articulo = column[String]("cve_articulo")
def renglon = column[Int]("renglon")
def precio = column[Double]("precio")
def marca = column[Option[String]]("marca")
def anexo = column[Option[String]]("anexo")
def modelo = column[Option[String]]("modelo")
def descalificado = column[Boolean]("descalificado")
def gana = column[Option[Boolean]]("gana")
def * = (id_comparativo, rfc, cve_articulo, renglon, precio, marca, anexo, modelo, descalificado, gana) <> (Precios.tupled, Precios.unapply)
}
def ById() = {
val query = TableQuery(new tabla(_))
val v = for {
q <- query
} yield q
v.map(println)
"nada"
}
}
But I only get this:
[warn] M.MyPostgresProfile - >>> DUPLICATED binding for tsrange - existed: com.github.tminglei.slickpg.Range, new: com.github.tminglei.slickpg.Range !!! If it's expected, pls ignore it.
[warn] M.MyPostgresProfile - >>> DUPLICATED binding for daterange - existed: com.github.tminglei.slickpg.Range, new: com.github.tminglei.slickpg.Range !!! If it's expected, pls ignore it.
Rep(Ref @1094116140)
Someone could tell me, Why happen this?