#
Main
This crate is the central piece of the app. In this one, you'll find the main process of the app, called init
, and the
logger - which isn't in use for the moment, as we preferred to use the Actix one for the moment.
#
Migrations
It's also here that we handle the sqlx migrations. Creating a new migration can be
done with the sqlx
CLI:
cargo sqlx migrate add stripe_customer_id
After that, you should be able to find it in the crates/main/migrations
folder.
The CLI is useful to run the migrations too:
cargo sqlx migrate run
Be aware that an executed migration can only be edited by removing the matching database row in the _sqlx_migrations
table!
#
Crate content
#
Structs
async fn main()
async fn init() -> anyhow::Result<()>