aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-08-27 00:02:27 -0400
committerJesse Luehrs <doy@tozt.net>2019-08-27 00:02:27 -0400
commitc5b0844ec759685fba35e890aa28c1db607c844c (patch)
treea1bd16e19935f2c4d892d95a99f4d92091f3da07 /README.md
parent92c8e04b5693b45902f0360f1d8b2c8d3d276efe (diff)
downloadynab-export-c5b0844ec759685fba35e890aa28c1db607c844c.tar.gz
ynab-export-c5b0844ec759685fba35e890aa28c1db607c844c.zip
readme
Diffstat (limited to 'README.md')
-rw-r--r--README.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..a3c5c8b
--- /dev/null
+++ b/README.md
@@ -0,0 +1,20 @@
+# ynab-export
+
+This is a simple program to export your YNAB data in CSV form, suitable for
+loading directly into a database. The repository includes an example schema
+file that can be used to represent this data.
+
+## Example
+
+ ynab-export
+ psql ynab < data/schema.sql
+ psql ynab -c 'COPY accounts FROM STDIN' < accounts.tsv
+ psql ynab -c 'COPY category_groups FROM STDIN' < category_groups.tsv
+ psql ynab -c 'COPY categories FROM STDIN' < categories.tsv
+ psql ynab -c 'COPY months FROM STDIN' < months.tsv
+ psql ynab -c 'COPY categories_by_month FROM STDIN' < categories_by_month.tsv
+ psql ynab -c 'COPY payees FROM STDIN' < payees.tsv
+ psql ynab -c 'COPY transactions FROM STDIN' < transactions.tsv
+ psql ynab -c 'COPY subtransactions FROM STDIN' < subtransactions.tsv
+ psql ynab -c 'COPY scheduled_transactions FROM STDIN' < scheduled_transactions.tsv
+ psql ynab -c 'COPY scheduled_subtransactions FROM STDIN' < scheduled_subtransactions.tsv