-- :name get-webhook :? :1
-- :doc retrieves a webhook record given the id
SELECT * FROM webhooks
WHERE id = :id
Is there a way to have query functions take positional args instead? I would prefer (db/get-row-by-id id)
as opposed to (db/get-row-by-id {:id id})
@jayzawrotny there's no way to do that, but you might as well write your own wrapper function to do that
Ah ok thanks. It dawned on me it was probably better or at the very least consistent and I can change my other user-land functions to take a params map and now they all speak the same language 🙂
yeah, that's exactly the right way to put it, your userland functions can be different 🙂