slick-pg icon indicating copy to clipboard operation
slick-pg copied to clipboard

code example in README.md is not usable as-is

Open natechols opened this issue 4 years ago • 1 comments

Specifically the MyPostgresProfile snippet - to get this to work I had to make two changes:

import slick.basic.Capability

and

  override protected def computeCapabilities: Set[Capability] =
    super.computeCapabilities + slick.jdbc.JdbcCapabilities.insertOrUpdate

Running Slick 3.3.1 with Scala 2.12.7, if that matters. I can submit a pull request with this change but it wasn't clear to me if the current computeCapabilities override would work with different versions - although I believe the import is required anyway.

natechols avatar Feb 28 '20 21:02 natechols

@natechols well, why I don't think it's a matter?

tminglei avatar Mar 01 '20 03:03 tminglei