datalevin

Samuel Ludwig 2026-04-09T19:58:15.050889Z

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

mdiin 2026-04-10T06:09:55.018269Z

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