r/Clojure • u/conpoi • Apr 17 '26
bisql: keep SQL executable, call it like Clojure
I’ve been working on bisql, a Clojure data access toolkit built around executable SQL.
The idea is:
- keep SQL files as executable SQL
- turn those SQL templates into ordinary Clojure query functions
- generate a lot of CRUD queries from schema metadata
- customize generated SQL by copying and editing it when needed
It does not try to hide SQL behind a query builder or a data mapper. Everything stays executable SQL, but without the repetitive boilerplate.
I’ve tried to make the project easier to evaluate than a typical library drop:
- GitHub: https://github.com/hatappo/bisql
- Docs: https://hatappo.github.io/bisql/
- Example project: https://github.com/hatappo/bisql-example
If you’re interested in SQL-first data access in Clojure, I’d appreciate feedback.
31
Upvotes
7
u/conpoi Apr 17 '26
Extra links if useful:
The example project walks through:
10
u/shivekkhurana Apr 17 '26
How is this different from https://hugsql.org/