Skip to content

Port the example to Slick 4 - #237

Merged
nafg merged 1 commit into
mainfrom
slick-4
Oct 21, 2026
Merged

nafg merged 1 commit into
mainfrom
slick-4

Conversation

@nafg

@nafg nafg commented Oct 20, 2026

Copy link
Copy Markdown
Member

Ports the example to Slick 4 the same way hello-slick#169 ported hello-slick:

  • Depend on Slick (and slick-codegen) 4.0.0-RC2, the latest release on Maven Central.
  • Example is an IOApp.Simple that opens the database with slick.cats.Database.resource(DatabaseConfig.forURL(H2Profile, url, driver = ...)). This replaces Database.forURL, Await and the global ExecutionContext, which DBIO.map no longer needs.
  • run / fork := true, as in hello-slick. Without it, Cats Effect warns that IOApp is running off the main thread.

The codegen invocation in build.sbt didn't need to change: SourceCodeGenerator's command-line arguments are the same in 4.0.0-RC2.

sbt clean githubWorkflowCheck compile run on Scala 2.13.18 prints no warnings and the app runs. On Scala 3.10.0 (++3.10.0!), the generated Tables.scala no longer produces the "Implicit parameters should be provided with a using clause" warnings, because GetResult.apply no longer takes an implicit parameter in Slick 4. Four warnings about (X.apply _).tupled remain.

🤖 Generated with Claude Code

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-20T18:39:26.416889Z 5112bad PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@mergify

mergify Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nafg
nafg merged commit 1c686d3 into main Oct 21, 2026
5 checks passed
@nafg
nafg deleted the slick-4 branch October 21, 2026 11:38
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

Successfully merging this pull request may close these issues.

1 participant