                           (unix-timestamp-of :created_at)
                           (limit 5))))
 
-  (is (renders-to "INSERT INTO events(created_at,message) VALUES (now(),'Message 1');"
+  (is (renders-to "INSERT INTO events (created_at,message) VALUES (now(),'Message 1');"
                   (insert :events
                           {:created_at (now)
                            :message    "Message 1"})))

                          (using (array-map :timestamp 42
                                            :ttl       24)))))

  (is (renders-to "INSERT INTO foo(a,b,\"C\",d) VALUES (123,'127.0.0.1','foo''bar',{'x':3,'y':2}) USING TIMESTAMP 42 AND TTL 24;"
                  (insert :foo
                          (array-map "a"          123
                                     "b"          (java.net.InetAddress/getByName "127.0.0.1")

                  (truncate :a :b))))

(deftest test-batch
  (is (renders-to (str "BEGIN BATCH INSERT INTO foo (asd) VALUES ('bsd');"
                       "INSERT INTO foo (asd) VALUES ('bsd');"
                       "INSERT INTO foo (asd) VALUES ('bsd');"
                       "APPLY BATCH;")
                  (batch
                   (queries
