Skip to content

Instantly share code, notes, and snippets.

@scimetfoo
scimetfoo / import_spliit_txns.clj
Last active November 28, 2024 19:19
Import Spliit transactions into Spliit
#!/usr/bin/env bb
(require '[babashka.pods :as pods])
(pods/load-pod 'org.babashka/postgresql "0.1.0")
(require '[cheshire.core :as json]
'[pod.babashka.postgresql :as pg]
'[clojure.string :as str])
(def db {:dbtype "postgresql"
#!/usr/bin/env bb
(require '[clojure.string :as str]
'[clojure.java.io :as io])
(when (not= (count *command-line-args*) 2)
(println "Usage: bb deutsche_bank_csv_to_qif.clj <input-csv> <output-qif>")
(println "Example: bb deutsche_bank_csv_to_qif.clj deutsche_bank.csv deutsche_bank.qif")
(System/exit 1))