Scala Database

Open-source Scala projects categorized as Database | Edit details

Top 23 Scala Database Projects

  • GitHub repo prisma1

    💾 Database Tools incl. ORM, Migrations and Admin UI (Postgres, MySQL & MongoDB)

    Project mention: Preferred SQL ORM | | 2021-10-16

    Mongoose is quite a standard also open-source, but Prisma is an emerging modern solution that seems to take the cake.

  • GitHub repo Slick

    Scala Language Integrated Connection Kit. Slick is a modern database query and access library for Scala (by slick)

    Project mention: Scala: A Love Story | | 2021-04-21

    I purchased the very entertaining book Seven Languages in Seven Weeks. Although I found Haskell fascinating and tempting, I knew it was unrealistic to introduce it in our company. Scala on the other hand looked like it could be the holy grail: All the characteristics I was looking for, no need to abandon the JVM and its cornucopia of tools and libraries, and the possibility for coexistence with Java and therefore incremental adoption. After implementing some simple programs to identify any immediate risks of committing to the language and its ecosystem, I started to introduce Scala in customer projects. Luckily, I was fortunate enough to work with open-minded, curious, and ambitious team members who were also experienced enough to appreciate the benefits of the language. We immediately applied our experience with functional programming, and embraced immutability. Libraries like Slick and Akka HTTP (we actually started out with its predecessor, Spray) made building database-backed REST services a breeze. And the resulting code was robust and highly maintainable. Scala's expressive type system and type inference made it easy to build a restrictive, consistent domain model without bloating the code. There was virtually no overhead. Any boilerplate could be easily abstracted out. In the end, the application code felt natural, concise and elegant. Programming was fun again.

  • Scout APM

    Scout APM: A developer's best friend. Try free for 14-days. Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.

  • GitHub repo Quill

    Compile-time Language Integrated Queries for Scala (by getquill)

    Project mention: Scala, 2.12/2.13, which driver/library recommend for connecting to Cassandra | | 2021-06-19 is my choice. Works like a charm.

  • GitHub repo doobie

    Functional JDBC layer for Scala.

    Project mention: Hiding Doobie's ConnectionIO implementation detail | | 2021-05-23

    You may find this issue helpful. tl;dr you can easily make a Transactor with the void Strategy that just ignores the null Connection. But I’m with Rob: at that point, you’re not actually testing anything.

  • GitHub repo Elastic4s

    Elasticsearch Scala Client - Reactive, Non Blocking, Type Safe, HTTP Client

    Project mention: Abstraction layers over the various JSON libraries? | | 2021-03-04

    Seems like the accepted solution is to have a separate subproject for each of the ~5 major json libraries. For example see elastic4s (elastic4s-jackson, elastic4s-circe, ...) or akka-http-json.

  • GitHub repo ScalikeJDBC

    A tidy SQL-based DB access library for Scala developers. This library naturally wraps JDBC APIs and provides you easy-to-use APIs.

    Project mention: Query DSL in Scala 3 | | 2021-02-24
  • GitHub repo Phantom

    Schema safe, type-safe, reactive Scala driver for Cassandra/Datastax Enterprise

    Project mention: Is there something like jOOQ in Scala (SQL parser/query DSL/ORM)? | | 2021-02-02
  • Nanos

    Run Linux Software Faster and Safer than Linux with Unikernels.

  • GitHub repo scala-redis

    A scala library for connecting to a redis server, or a cluster of redis nodes using consistent hashing on the client side.

  • GitHub repo ReactiveMongo

    :leaves: Non-blocking, Reactive MongoDB Driver for Scala

    Project mention: What Are You Working On December 07 2020 | | 2021-01-22

    Is Reactive Mongo an option?

  • GitHub repo rediscala

    Non-blocking, Reactive Redis driver for Scala (with Sentinel support)

  • GitHub repo Slick-pg

    Slick extensions for PostgreSQL

    Project mention: Slick 3.3.3 : Postgres : ZonedDateTime and OffsetDateTime bind to VARCHAR. Just Why ? | | 2021-01-14 has some decent datetime support for Postgres, and will work out of the box. If you want to override the date time support you can use a custom profile:

  • GitHub repo Squeryl

    A Scala DSL for talking with databases with minimum verbosity and maximum type safety

  • GitHub repo Casbah

    Casbah is now officially end-of-life (EOL).

  • GitHub repo Salat

    Salat is a simple serialization library for case classes.

  • GitHub repo gremlin-scala

    Scala wrapper for Apache TinkerPop 3 Graph DSL

  • GitHub repo Scala ActiveRecord

    ActiveRecord-like ORM library for Scala

  • GitHub repo Activate

    Abandoned: Pluggable persistence in Scala

  • GitHub repo Scanamo

    Simpler DynamoDB access for Scala

  • GitHub repo mongo-scala-driver

  • GitHub repo Sorm

    A functional boilerplate-free Scala ORM

  • GitHub repo SwayDB

    Non-blocking persistent & in-memory key-value storage engine for JVM.

  • GitHub repo Anorm

    The Anorm database library

  • GitHub repo Scala-Forklift

    Type-safe data migration tool for Slick, Git and beyond.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2021-10-16.


What are some of the best open-source Database projects in Scala? This list will help you:

Project Stars
1 prisma1 16,846
2 Slick 2,483
3 Quill 1,938
4 doobie 1,869
5 Elastic4s 1,567
6 ScalikeJDBC 1,170
7 Phantom 1,050
8 scala-redis 999
9 ReactiveMongo 829
10 rediscala 800
11 Slick-pg 794
12 Squeryl 570
13 Casbah 518
14 Salat 487
15 gremlin-scala 473
16 Scala ActiveRecord 324
17 Activate 307
18 Scanamo 292
19 mongo-scala-driver 289
20 Sorm 240
21 SwayDB 237
22 Anorm 215
23 Scala-Forklift 183
Find remote jobs at our new job board There are 34 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives