Releases: tminglei/slick-pg
Releases · tminglei/slick-pg
v0.8.3
v0.8.2
- add ?-contained operators support
- add plain sql support for composite
Note: nextXXXArray
/nextXXXArrayOption
s in PgArraySupport.SimpleArrayPlainImplicits
are unified to nextArray[XXX]
/nextArrayOption[XXX]
.
But, not all array of types are built-in supported, it just means that you can get them in a unified way.
For unsupported array of types, you can extend it by overriding the method of SimpleArrayPlainImplicits.extNextArray
, as I did in MyPostgresDriver:
override protected def extNextArray(tpe: u.Type, r: PositionedResult): (Boolean, Option[Seq[_]]) =
tpe match {
case tpe if tpe.typeConstructor =:= u.typeOf[LTree].typeConstructor =>
(true, r.nextStringOption().flatMap(fromString(LTree.apply)))
case _ => super.extNextArray(tpe, r)
}
v0.8.1
- add postgres 9.4 jsonb support
- add more json operators/functions
Note: to keep compatible, jsonb
support is not on by default.
You can enable it with config like this:
trait MyPostgresDriver extends ExPostgresDriver
...
with PgJsonSupport
with PgSearchSupport {
override val pgjson = "jsonb"
...