# krisajenkins/yesql

A Clojure library for using SQL.

Repository: https://github.com/krisajenkins/yesql
Canonical: https://ross.abutalabs.com/products/yesql
Language: Clojure
License: EPL-1.0
License Family: copyleft
Last push: 2024-11-23T00:30:44+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4726, "days_push": 649, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1498, forks 109 (observed 2026-08-28T04:04:54.041210+00:00)

## What it is
Yesql is a Clojure library for using plain SQL by defining queries in annotated .sql files and loading them as regular Clojure functions. It deliberately avoids building a SQL DSL, keeping SQL as SQL while integrating it cleanly with JDBC.

## Use cases
- write sql queries in clojure without a dsl
- load sql files as clojure functions
- keep sql syntax highlighting and readability in clojure projects
- run parameterized jdbc queries from clojure
- separate sql queries from application code

## When to choose
- you prefer writing raw SQL over a DSL or ORM in Clojure
- you want queries in separate .sql files with named parameters
- you need a simple, composable JDBC wrapper

## When to avoid
- you want an actively developed library (consider HugSQL)
- you prefer a query DSL or full ORM abstraction
- you need compile-time query validation

## Facets
- artifact type: library
- maturity: maintenance
- function: database, database-driver, orm
- domain: databases, developer-tools, backend
- platform: jvm, jvm-scripting
- tags: clojure, sql, jdbc, query-files, database-access

## Member repositories
- krisajenkins/yesql (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:54.041210+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-30T04:33:05.125598+00:00, confidence not recorded.
  - readme: https://github.com/krisajenkins/yesql (fetched 2026-08-28T04:04:54.041210+00:00, sha 6772246a971a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
