Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
natechols opened this issue Feb 28, 2020 · 1 comment
Open

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

natechols opened this issue Feb 28, 2020 · 1 comment

Comments

@natechols
Copy link

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.

@tminglei
Copy link
Owner

tminglei commented Mar 1, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants