Back to directory
playframework avatar

anorm

The Anorm database library. Read more below about its uses, features, and usage.

Clone repository

git clone https://github.com/playframework/anorm.git

254

Stars

77

Forks

15

Watchers

Apache-2.0

License

Anorm

Twitter Follow Discord GitHub Discussions StackOverflow YouTube Twitch Status OpenCollective

Build Status Maven Repository size Scala Steward badge Mergify Status

Anorm is a simple data access layer that uses plain SQL to interact with the database and provides an API to parse and transform the resulting datasets.

Usage

In a projects built with SBT, dependency to Anorm can be added as following:

libraryDependencies ++= Seq(
  "org.playframework.anorm" %% "anorm" % ReplaceByAnormVersion)

Build manually

Anorm can be built from this source repository.

sbt publish-local

To run the tests, use:

sbt test

Documentation

To run the documentation server, run:

sbt docs/run

To test the documentation code samples, run:

sbt docs/test

Releasing a new version

See https://github.com/playframework/.github/blob/main/RELEASING.md

Releases

Jun 14, 2026

Anorm 3.1.0

Download .zip

Changes

#665 Fix: NULL column incorrectly reported as ColumnNotFound instead of UnexpectedNullableFound by @copilot-swe-agent[bot] and @gaeljw

⚠️ Users that would have code relying on ColumnNotFound...

May 16, 2026

Anorm 3.0.0

Download .zip

Changes New baseline Java 17 and Scala 2.13 are now the minimum required to use the library. Joda module Joda support has been moved to a dedicated module. Anorm core doesn't pull Joda anymore. If you...

Mar 15, 2026

Anorm 2.11.0

Download .zip

📣 Upcoming changes We plan on dropping support for Java 8, Scala 2.12 and Joda in a near future. Feedbacks welcomed in the respective threads: Java 8, Scala 2.12, Joda. Changes

Upgrade Scala to 2.12...

Mar 8, 2026

Anorm 2.10.0

Download .zip

Changes

#666 🧹 chore: drop support for Scala 2.11 by @gaeljw #668 🧹 chore(anorm-postgres): upgrade play-json to org.playframework v3.0.6 by @gaeljw

❤️ Thanks to our premium sponsors!...

Feb 27, 2026

Anorm 2.9.1

Download .zip

Changes Anorm 2.9.0 introduced the upgrade of Scala Parser Combinator 2.x (for Scala 2.13) that is binary incompatible with 1.x even though Play Framework still pulls 1.x. This release reverts this ch...