Skip to content
CAI
Software that uses CAICheck a score

slick/slick-codegen-example

54.9

Weak · 7 November 2026

26

lines of production code

Scala

primary language

4

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Added tutorial for Slick's default code generator

A new tutorial page has been added to demonstrate how to set up sbt to use Slick's preconfigured code generator for working with an existing database schema. The page explains how to enable automatic and manual code generation, where the generated code is placed, and how to run the demo using sbt.

tutorial · high confidence

Removals

Removal of Slick 2.x example code

The Slick 2.x demonstration code in \src/main/scala/Example.scala\ has been removed. This file previously contained a complete example using the legacy \scala.slick.driver.H2Driver\ and older join/query syntax, which is no longer present in the codebase.

src/main/scala · high confidence

Behavioural changes

Migration to sbt 1.13 and replacement of build configuration

The project build has been upgraded from sbt 0.13 to sbt 1.13. The legacy \project/Build.scala\ file, which contained custom Slick code generation tasks, has been removed, indicating a shift away from the previous build structure. Additionally, the \sbteclipse-plugin\ has been replaced with \sbt-mergify-github-actions\ in the plugins configuration.

project · high confidence

Project structure modernized and automated maintenance enabled

The project has been converted to an sbt activator structure, updating the build configuration to use Scala 2.11 and sbt 1.0.2, and switching the code generator output path to \target/scala-2.11/src\_managed\. To support ongoing maintenance, Renovate and Scala Steward bots are now configured to automatically manage dependency updates and merge successful PRs, while the code style is standardized using Scalafmt v3.11.5 with Scala 3 dialect settings. Additionally, standard repository governance files (LICENSE, NOTICE, CODE\_OF\_CONDUCT) and IDE-specific gitignore rules have been added.

(repo-wide) · high confidence

Schema safety and data cleanup in database initialization script

The database initialization script (create.sql) now uses 'IF NOT EXISTS' when creating the COMPUTERS and COMPANIES tables, preventing errors if the tables already exist. Additionally, several computer names in the seed data have been corrected to remove the erroneous 'Row' suffix (e.g., 'Acorn computer' instead of 'Acorn ComputersRow') and fix spacing issues.

src/main/sql · high confidence

Updated codegen example to use Slick 4 and cats-effect

The code generation example in src/main/scala/slick/examples/codegen/Example.scala has been updated to align with Slick 4. The application entry point now extends IOApp.Simple from cats-effect instead of the deprecated scala.App, and database interactions are managed via the slick-cats integration (slick.cats.Database) rather than direct JDBC or older Slick execution contexts. This change ensures the example runs correctly with the newer Slick version and modern asynchronous execution patterns.

src/main/scala/slick · high confidence

Dependencies

Initial project setup with Slick 3.6.1 and H2 2.5.252

This change introduces the build configuration for the 'slick-codegen-example' project, establishing the core dependencies and build behavior. It sets the Scala version to 2.13.18 and configures the project to use Slick 3.6.1 (including code generation) and the H2 database 2.5.252, along with slf4j-nop 2.0.20 for logging. The build is configured to automatically generate Scala code from the H2 database schema during compilation and targets Java 17 for CI execution.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 57 → 55 (-2.1)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 76 → 76 (+0.0)
  • Architecture 57 → 57 (+0.0)
  • Maturity 68 → 68 (+0.0)
  • Readiness 45 → 41 (-4.3)
  • Security 97 → 94 (-2.3)
  • Performance 100 → 100 (+0.0)

Resolved (2)

  • Documentation: no installation or build instructions (README.md)
  • Documentation: no usage examples (README.md)

New (1)

  • Dependency hygiene PARTLY measured — sbt declarations read, dependency currency not (Maven Central unreachable)

Changes since last survey

  • 2 commits — 2 feature/other, 0 fixes

By area

  • (repo) — 1 commit
  • project/build.properties — 1 commit

Notable commits

  • change: Merge pull request #240 from slick/update/sbt-2.0.12
  • change: Update sbt to 2.0.12

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

slick/slick-codegen-example was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 7 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 699d7a6539f60c932f42ac933f7306a6dce5c4cd — the exact code this score is about.
  • Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-c34be012586e.