   (let [dt (-> 2 seconds ago)]
     (dotimes [i 20]
       (insert *session* :events
-              {:created_at (query/now)
+              {:created_at (now)
                :message (format "Message %d" i)}))
     (let [xs  (select *session* :events
-                      (query/date-of :created_at)
+                      (date-of :created_at)
                       (limit 5))
           dt' (cc/from-date (get (first xs) (keyword "dateOf(created_at)")))]
       (is (before? dt dt')))))

         (select *session* :user_posts
                 (columns :post_id)
                 (where {:username "Alex"})
                 (order-by (query/desc :post_id))))))

(deftest test-timeuuid-now-and-unix-timestamp-of
  (let [dt (-> 2 seconds ago)
        ts (cc/to-long dt)]
    (dotimes [i 20]
      (insert *session* :events
              {:created_at (query/now)
               :message    (format "Message %d" i)}))
    (let [xs  (select *session* :events
                      (query/unix-timestamp-of :created_at)
                      (limit 5))
          ts' (get (first xs) (keyword "unixTimestampOf(created_at)"))]
      (is (> ts' ts)))))


  (testing "Decrement with explicit params"
    (update *session* :user_counters
            {:user_count (increment-by 5000000)}
            (where {:name "user1"}))
    (is (= 5000500 (-> (select *session* :user_counters)
                       first
