Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. # def-fetcher <code clojure> (defmacro def-fetcher [sym bindings do-fetch-fn] `(defrecord ~sym ~bindings u/DataSource (-identity [this#] (:id this#)) (-fetch [this# env#] (unwrap (~do-fetch-fn this# env#))))) </code> ### Docs - [[def-superfetcher]] open/def-fetcher.txt Last modified: 2024/10/05 06:15by 127.0.0.1