This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns numpy-wannabe.core | |
(:gen-class) | |
(:require [clojure.edn :as edn] | |
[clojure.string :as str])) | |
;;;;;;;; Helper Functions | |
(defn gsub [matcher replacer value] | |
(str/replace value matcher replacer)) | |
(defn nths [row, columns] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### evals the schema into the current process | |
class SqliteTestDbLoader | |
# assumes your schema is generated for MySQL | |
# tweak for Postgres! | |
MYSQL_REPLACEMENTS = { | |
/ENGINE=InnoDB DEFAULT CHARSET=[a-z0-9]*/ => '', | |
/, collation: "[^"]*"/ => '' | |
} |