(do-with-temp modelable attributes f)(do-with-temp* model attributes f)Implementation of with-temp. You can implement this if you need to do some sort of special behavior for a
particular model. But normally you would just implement with-temp-defaults. If you need to do special setup when
using with-temp, you can implement a :before method:
(m/defmethod do-with-temp* :before :default [model attributes f] (set-up-db!) f)
Implementation of [[with-temp]]. You can implement this if you need to do some sort of special behavior for a
particular model. But normally you would just implement [[with-temp-defaults]]. If you need to do special setup when
using [[with-temp]], you can implement a `:before` method:
(m/defmethod do-with-temp* :before :default
[model attributes f]
(set-up-db!)
f)(with-temp [modelable temp-object-binding attributes & more] & body)(with-temp-defaults model)cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |