Releases: tminglei/slick-pg
Releases · tminglei/slick-pg
v0.14.0
v0.13.0
- test on postgres 9.5
- native
upsert
support for pg 9.5+ - enhanced pg json support (added support for
||
,-
,#-
,jsonb_set
etc.)
p.s. to enable native upsert
support, you should do like this:
object MyPostgresDriver extends ExPostgresDriver {
// Add back `capabilities.insertOrUpdate` to enable native `upsert` support
override protected def computeCapabilities: Set[Capability] =
super.computeCapabilities + JdbcProfile.capabilities.insertOrUpdate
}
v0.12.2
v0.12.1
v0.12.0
v0.11.3
v0.11.2
v0.11.0
- Upgrade json4s to v3.3.0 (#242)
- Array support - change
basedOn
tomapTo
(!!!BROKEN CHANGE) - Array support - add built-in supported type checking (#244)
- Optimize object insertions and updates (#247)
- Support
at time zone
for time/timestamp (#250)
NOTE:
When you define a array type mapper for a wrap type Institution
, you do it
before
implicit val institutionListTypeWrapper = new SimpleArrayJdbcType[Institution]("int8")
.basedOn[Long](_.value, new Institution(_)).to(_.toList)
now
implicit val institutionListTypeWrapper = new SimpleArrayJdbcType[Long]("int8")
.mapTo[Institution](new Institution(_), _.value).to(_.toList)