aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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'