aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-08-26 23:58:52 -0400
committerJesse Luehrs <doy@tozt.net>2019-08-26 23:58:52 -0400
commit92c8e04b5693b45902f0360f1d8b2c8d3d276efe (patch)
treee8c49d6853e5aec3848c9972817281971607e321
parentb8a849c6c6b4b12502569ae28b15e2e287544d89 (diff)
downloadynab-export-92c8e04b5693b45902f0360f1d8b2c8d3d276efe.tar.gz
ynab-export-92c8e04b5693b45902f0360f1d8b2c8d3d276efe.zip
remove load script, it's too specific to my setup
-rwxr-xr-xbin/load24
1 files changed, 0 insertions, 24 deletions
diff --git a/bin/load b/bin/load
deleted file mode 100755
index 0df1d32..0000000
--- a/bin/load
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-set -eu
-
-cd "$(dirname "$0")/.." || exit 1
-
-cargo build
-cd data || exit 1
-
-rm -f ./*.tsv || true
-../target/debug/ynab-export
-
-psql -U metabase ynab < schema.sql
-psql -U metabase ynab -c 'COPY accounts FROM STDIN' < accounts.tsv
-psql -U metabase ynab -c 'COPY category_groups FROM STDIN' < category_groups.tsv
-psql -U metabase ynab -c 'COPY categories FROM STDIN' < categories.tsv
-psql -U metabase ynab -c 'COPY months FROM STDIN' < months.tsv
-psql -U metabase ynab -c 'COPY categories_by_month FROM STDIN' < categories_by_month.tsv
-psql -U metabase ynab -c 'COPY payees FROM STDIN' < payees.tsv
-psql -U metabase ynab -c 'COPY transactions FROM STDIN' < transactions.tsv
-psql -U metabase ynab -c 'COPY subtransactions FROM STDIN' < subtransactions.tsv
-psql -U metabase ynab -c 'COPY scheduled_transactions FROM STDIN' < scheduled_transactions.tsv
-psql -U metabase ynab -c 'COPY scheduled_subtransactions FROM STDIN' < scheduled_subtransactions.tsv
-
-seq 1000000 | psql -U metabase ynab -c 'COPY ints FROM STDIN'