 ;; Tell the DB to open an "AUTO_SERVER" connection so multiple processes can connect to it (e.g. web server + REPL)
 ;; Do this by appending `;AUTO_SERVER=TRUE` to the JDBC URL (see http://h2database.com/html/features.html#auto_mixed_mode)
 
+
 (defn- setup-db
   "Setup Korma default DB."
   []

                                    :fields str/upper-case}}))]
    (default-connection db)))

(defn migrate
  "Migrate the database `:up` or `:down.`"
  [direction]
  (setup-db)
  (let [conn (jdbc/get-connection {:subprotocol "h2"
                                   :subname @db-file})]
    (case direction
      :up   (com.metabase.corvus.migrations.LiquibaseMigrations/setupDatabase conn)
      :down (com.metabase.corvus.migrations.LiquibaseMigrations/teardownDatabase conn))))


;;; # UTILITY FUNCTIONS

            [metabase.db.internal :refer :all]
            [metabase.util :as u]))


(declare post-select)

(def db-file
