# zio/zio-quill

Compile-time Language Integrated Queries for Scala

Repository: https://github.com/zio/zio-quill
Canonical: https://ross.abutalabs.com/products/zio-quill
Homepage: https://zio.dev/zio-quill
Language: Scala
License: Apache-2.0
License Family: permissive
Topics: database, scala, scalajs, mysql, postgres, cassandra, jdbc, linq, spark, sparksql
Last push: 2026-08-26T00:12:25+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 8, longevity 100
- inputs: {"age_days": 4062, "days_push": 8, "days_rel": 412, "gap_med": 235, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2166, forks 352 (observed 2026-08-28T04:06:21.364069+00:00)

## What it is
ZIO Quill is a Scala database query library providing a Quoted Domain Specific Language (QDSL) that translates Scala code into SQL or Cassandra Query Language at compile time. It offers boilerplate-free case-class mapping, compile-time query generation and optional compile-time validation against the database, with near-driver-level runtime performance.

## Use cases
- write type-safe SQL queries in Scala without string concatenation
- map database tables to case classes without boilerplate
- validate database queries at compile time
- query Cassandra with a Scala DSL
- build reactive ZIO applications with PostgreSQL access
- avoid ORM runtime overhead in Scala data access layers

## When to choose
- you are writing Scala (2.x or Scala 3 via ProtoQuill) and want compile-time checked queries
- you use ZIO and want idiomatic async database access
- you want LINQ-style query generation with minimal runtime overhead
- you target SQL databases or Cassandra

## When to avoid
- your project is not on the JVM/Scala ecosystem
- you need dynamic queries built entirely at runtime
- you need a traditional full-featured ORM with change tracking and lazy loading
- your team is not comfortable with macro-heavy compile-time tooling

## Facets
- artifact type: library
- maturity: stable
- function: orm, database, database-driver
- domain: databases, developer-tools, backend
- platform: jvm
- tags: scala, qdsl, compile-time-query-generation, jdbc, cassandra, sql, zio, linq-style

## Member repositories
- zio/zio-quill (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:21.364069+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:49:58.059953+00:00, confidence not recorded.
  - readme: https://github.com/zio/zio-quill (fetched 2026-08-28T04:06:21.364069+00:00, sha 0fa37633ad15)
  - homepage: https://zio.dev/zio-quill (fetched 2026-08-29T10:29:56.494865+00:00, sha ca0939de27bd)
  - site_page: https://zio.dev/overview/getting-started (fetched 2026-08-29T10:29:56.497252+00:00, sha 13ae7b59f065)
  - site_page: https://zio.dev/zio-quill/getting-started (fetched 2026-08-29T10:29:56.499278+00:00, sha 6c6ca53af3e1)
  - site_page: https://zio.dev/contributing-to-documentation (fetched 2026-08-29T10:29:56.504144+00:00, sha 3e6c3734d876)
  - site_page: https://zio.dev/zio-quill/changelog (fetched 2026-08-29T10:29:56.501020+00:00, sha 0d899fe8dff7)
  - site_page: https://zio.dev/faq (fetched 2026-08-29T10:29:56.506025+00:00, sha 4befb004f8f0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
