Liking cljdoc? Tell your friends :D

toucan2.tools.with-temp


do-with-tempclj

(do-with-temp modelable attributes f)
source

do-with-temp*clj

(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)
sourceraw docstring

with-tempcljmacro

(with-temp [modelable temp-object-binding attributes & more] & body)
source

with-temp-defaultsclj

(with-temp-defaults model)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close