datalevin 2026-04-09

Is there a way to parameterize :limit and :offset in a call to d/q, or do I need to splice them in? My initial assumption was that I could supply them like other arguments in the :in ... clause, but that gives me an "Unacceptable format" message

I have spliced them in when I did that last:

(defn get-From-dB
  [conn {:keys [offset limit]}]
  (d/q {:find '[?dbid (min ?dt)]
        :in '[$]
        :where
        '[…]
        :order-by '[?dt :desc]
        :limit limit
        :offset offset}
       (d/db conn)))

❤️ 1