Back

run-sql (clj)

(source)

function

(run-sql {:keys [conn db modify-sql-fn expect-results?], :as config} sql direction)

Examples

migratus
(ns migratus.test.migration.sql
  (:require [clojure.java.io :as io]
            [clojure.test :refer :all]
            [migratus.core :as core]
            [migratus.database :as db]
            [migratus.migration.sql :refer :all]
            [next.jdbc :as jdbc]
            [next.jdbc.result-set :as rs]))

(deftest test-run-sql-migrations
  (let [config (merge test-config
                      {:store :mock
                       :completed-ids (atom #{})})]


  (run-test test-run-sql-migrations)