Containerized read-in and storage of budget data
Pretty simple - I've been keeping my home budget in an Excel spreadsheet for years, it's about time it was stored in a db. Plus I wanted to do more Rust stuff.
...I think that's it...if I have to tell you to install Rust then 🤷
-
Create
.env
file:BUDGET_FILEPATH={PATH TO OLD BUDGET WORKBOOK} DATABASE_URL=postgres://{USERNAME}:{PASSWORD}@localhost/{DB NAME} POSTGRES_USER={USERNAME} POSTGRES_PASSWORD={PASSWORD} POSTGRES_DB={DB NAME}
-
Spin up your postgres container
docker-compose up -d
-
Run your migrations
diesel migration run
-
Run the
upload_all
to load in all worksheets found atBUDGET_FILEPATH
-
cargo run --bin upload_all
-
NOTE: Worksheet names are expected to have the format
%B %Y
e.g.November 2022
Rust Date Formats
-