Fork me on GitHub
#rethinkdb
<
2016-09-09
>
apa51210:09:10

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

thedavidmeister10:09:47

that would be great

thedavidmeister10:09:58

i just noticed something

thedavidmeister10:09:35

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

thedavidmeister10:09:46

(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)))))

apa51220:09:22

seems like a good idea