hugsql 2019-12-10

hello, I’m a bit unclear about the use of snippets. I was expecting this to work when I call test-sqlvec:

-- :snip col
a, b, c, d

-- :name test
-- :result many
select :snip:col from my_table;

I call test-sqlvec without any params and I get:

> (test-sqlvec {})
Execution error (ExceptionInfo) at hugsql.core/validate-parameters! (core.clj:85).
Parameter Mismatch: :col parameter data not found.

hm, by reading the manual more closely it seems that this is not supported

Snippets work a little differently...they are not fragments. Unfortunately, fragments are not implemented yet. Details and some work-arounds here: <https://github.com/layerware/hugsql/issues/36>