{"id":49569356,"url":"https://github.com/hatappo/bisql","last_synced_at":"2026-05-03T13:05:25.611Z","repository":{"id":350302934,"uuid":"1140940309","full_name":"hatappo/bisql","owner":"hatappo","description":"Keep SQL executable, call it as Clojure functions 🚲️","archived":false,"fork":false,"pushed_at":"2026-04-24T21:02:26.000Z","size":2790,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-24T21:29:56.871Z","etag":null,"topics":["2way-sql","bycycle","clojure","jdbc","orm","postgresql","sql","sql-template"],"latest_commit_sha":null,"homepage":"https://hatappo.github.io/bisql/","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hatappo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-24T00:50:44.000Z","updated_at":"2026-04-24T21:02:31.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/hatappo/bisql","commit_stats":null,"previous_names":["hatappo/bisql"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/hatappo/bisql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatappo%2Fbisql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatappo%2Fbisql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatappo%2Fbisql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatappo%2Fbisql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hatappo","download_url":"https://codeload.github.com/hatappo/bisql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatappo%2Fbisql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32569714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["2way-sql","bycycle","clojure","jdbc","orm","postgresql","sql","sql-template"],"created_at":"2026-05-03T13:05:22.816Z","updated_at":"2026-05-03T13:05:25.603Z","avatar_url":"https://github.com/hatappo.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bisql\n\n[![Clojars Project](https://img.shields.io/clojars/v/io.github.hatappo/bisql.svg)](https://clojars.org/io.github.hatappo/bisql)\n[![Docs](https://img.shields.io/badge/docs-pages-cdc0a6)](https://hatappo.github.io/bisql/)\n[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/hatappo/bisql)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/img/bicycle.svg\" alt=\"Bisql bicycle logo\" width=\"96\" height=\"96\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003ccode\u003ebisql\u003c/code\u003e (\u003ccode\u003ebáisikl\u003c/code\u003e)\u003c/p\u003e\n\nExecutable SQL as Clojure functions, with generated CRUD queries and SQL-first development.\n\n![SQL transformation screenshot](docs/img/screenshot-sql-example.png)\n\n- Query templates remain valid, executable SQL.\n- Typical index-friendly queries are generated automatically, as comprehensively as possible.\n\nNo query builder  \nNo data mapper  \nNo hidden SQL  \nNo boilerplate SQL  \n\nStart a database, run the generation commands, add `(defquery)`, and you can immediately call query functions from your Clojure code. Every function still corresponds to real SQL.\n\n\u003e [!NOTE]\n\u003e This project is still early and the API may change.\n\u003e Support for databases beyond PostgreSQL is planned.\n\n## Getting Started\n\nThe full Getting Started guide lives here:\n\n- [docs/03-getting-started.md](docs/03-getting-started.md)\n- [https://hatappo.github.io/bisql/docs/getting-started/](https://hatappo.github.io/bisql/docs/getting-started/)\n\n## Installation\n\nThe full Installation guide lives here:\n\n- [docs/02-installation.md](docs/02-installation.md)\n- [https://hatappo.github.io/bisql/docs/installation/](https://hatappo.github.io/bisql/docs/installation/)\n\n## Malli Validation\n\n- Generated CRUD SQL carries `:malli/in` and `:malli/out` declaration metadata.\n- When generated query functions keep `:malli/in` and `:malli/out` metadata, Bisql can run Malli validation transparently during query execution.\n\nThe full guide lives here:\n\n- [docs/12-malli-validation.md](docs/12-malli-validation.md)\n- [https://hatappo.github.io/bisql/docs/malli-validation/](https://hatappo.github.io/bisql/docs/malli-validation/)\n\n## Quick Example\n\nSee the end-to-end sample project here:\n\n- [https://github.com/hatappo/bisql-example](https://github.com/hatappo/bisql-example)\n\nIt shows a practical flow:\n\n- generate CRUD SQL from a PostgreSQL schema\n- generate matching function namespace files\n- execute one generated query\n- copy one generated query into a hand-written SQL template\n- execute the customized query\n\n## Development\n\nFor local setup, tasks, and dev workflow, see:\n\n- [docs/dev-local-development.md](docs/dev-local-development.md)\n\n## Ideas Under Consideration\n\n- ✅️ ~~Support a very small expression language to improve expressiveness in `if` conditions.~~\n- ✅️ ~~Add Malli integration.~~\n- Split Malli validation dependencies out from the main runtime package.\n- Add sentinels for SQL time literals such as `CURRENT_DATE`, `CURRENT_TIME`, and `CURRENT_TIMESTAMP`.\n- Split the CLI into a separate package.\n  - Add `rewrite-clj` as a CLI-side dependency and implement pruning for unused generated vars.\n- Support databases beyond PostgreSQL.\n- Compile analyzed SQL templates into reusable renderer functions for lower runtime overhead.\n  - Simplify emitted renderer forms further, especially around branch and loop body handling.\n  - Reduce helper calls in emitted code where fragment normalization is still delegated.\n  - Restrict `bisql/DEFAULT` to valid SQL value contexts if context-aware rendering becomes necessary.\n  - Detect dangerous `nil` comparisons consistently in `WHERE` / `HAVING` clauses instead of letting expressions such as `= NULL`, `LIKE NULL`, or `IN (NULL)` silently behave unexpectedly. This likely needs stricter SQL context parsing, because `= NULL` is dangerous in `WHERE` / `HAVING` but can still be valid assignment syntax in `SET`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhatappo%2Fbisql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhatappo%2Fbisql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhatappo%2Fbisql/lists"}