rethinkdb 2016-09-09

sure thing, hope you found it useful. i should probably write a line or two of docs and publish it to clojars.

that would be great

i just noticed something

should we be waiting for the table being created in ensure-migration-schema?

(defn- ensure-migration-schema
  "Ensures the schema to track db migrations"
  [conn]
  (let [table :migrations]
    (when-not (-> (r/table-list)
                  (r/contains table)
                  (r/run conn))
              (-> (r/table-create table)
                  (r/run conn))
              (-> (r/table table)
                  (r/wait)
                  (r/run conn)))))

seems like a good idea