meee-low / jurnalo

A journal/mood/habit tracker.
1 stars 2 forks source link

Backend now creates tables with the chosen schema. #12

Closed meee-low closed 1 year ago

meee-low commented 1 year ago

Schema can be found in schema.rs or in the sql files in migrations/.

Run backend.rs (cargo run --bin backend) or diesel migration run to build the sqlite database locally.

Next step is creating hooks/functions to interact with the database.

meee-low commented 1 year ago

Ignoring the format fail. cargo fmt is too opinionated, and the files automatically generated by diesel don't conform to it. Worrying about this would be an endless back-and-forth between these two.

Todo: Need to find a way to tweak the formatting settings for these files.