#ynab #export #schema #budget #help #tool

app ynab-export

ynab-export is a tool to help export a YNAB budget to a database

6 releases

new 0.0.6 Jan 13, 2025
0.0.5 Jan 13, 2025
0.0.4 Nov 7, 2019
0.0.3 Sep 14, 2019
0.0.2 Aug 27, 2019

#208 in Database interfaces

Download history 6/week @ 2024-09-24 2/week @ 2024-10-01 1/week @ 2024-12-10 112/week @ 2025-01-07

112 downloads per month

MIT license

44KB
1K SLoC

SQL 822 SLoC Rust 397 SLoC // 0.0% comments

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 schema | psql ynab

ynab-export
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

Dependencies

~11–23MB
~319K SLoC