🚀 bisql (Clojure Data Access Library) released v0.4.0: Support Malli Validation
Bisql I'm building Bisql, a data access library for 2-way SQL in Clojure. https://github.com/hatappo/bisql Since it's “2-way,” I called it bisql with the bi- prefix. It is pronounced like bicycle. A common weakness of SQL-template libraries, not just 2-way SQL libraries, is that writing all SQL as templates can become tedious. To address that, many SQL-template libraries support a query builder. You can write some queries as templates and others with a builder. But I think that approach is fundamentally inconsistent. If every query function is maintained as SQL or SQL templates, the cost of reviewing and understanding the data access layer drops significantly. Every database access has a concrete representation as an actual SQL file. Once a query builder gets mixed in, that consistency is gone. And in practice, what starts as “we’ll only use the builder for simple queries” often drifts into using it for complex queries as well, until the generated SQL is no longer obviously what you intended. Bisql takes a different approach: every database access should be written as SQL. That said, hand-writing even simple CRUD operations for every table is tedious. So Bisql takes another approach there: it generates a large and comprehensive set of typical CRUD queries automatically. It connects to a real database, inspects the schema, considers indexes, and generates SQL templates for many index-friendly query patterns. Then the defquery macro converts all of those .sql template files int...
👉 Read more: https://dev.to/conpoi/bisql-clojure-data-access-library-released-v040-support-malli-validation-1o0o
