Result
The :result specifies the expected result type for the given SQL. The available built-in values are:
:oneor:1One row as a hash-map.:manyor:*Many rows as a vector of hash-maps.:affectedor:nNumber of rows affected (inserted/updated/deleted).:rawPassthrough an untouched result.
:raw is the default when no result is specified.
tip
To save some typing, the result function can be specified as the third value for the :name key. You must supply a command value in order to use this shorthand convention:
SQL
-- :name all-characters :? :*
You can create result functions of your own by implementing a hugsql.core/hugsql-result-fn multimethod.