Fork me on GitHub
#admin-announcements
<
2016-07-27
>
dpsutton03:07:04

I'm releasing my first package on clojars. I found myself rewriting the same macros for wrapping a sql query so I put them in an importable package. This package allows you to use the syntax (make-query query-name "select * from users where id = ?" id) easily throw sql into your project and get on with the real stuff. It takes an arbitrary list of parameters including none and works with eldoc. The whole idea is that sql is the lingua franca of many people so sometimes raw sql can be better than vectors and lists like in other libraries. You also don't need to find out if min or max are supported, how group by's work, etc. It lets you take existing queries written in other places and get on with it. I only use MS SqlServer at work so I just need to know the precise way that the db maps are made for other data stores for their functionality. Pull requests accepted. https://clojars.org/simple-query