Offline mode allows building without an active database connection. Downside is, on every PR that edits database queries/schema, sqlx-data.json must be updated too by invoking make update-db-schema.
However having offline mode enabled helps by not needing active database connection when contributing to project where there are no database operations involved. It also makes building the project on CI easier though we are not using that functionality yet.
Offline mode allows building without an active database connection. Downside is, on every PR that edits database queries/schema,
sqlx-data.json
must be updated too by invokingmake update-db-schema
.However having offline mode enabled helps by not needing active database connection when contributing to project where there are no database operations involved. It also makes building the project on CI easier though we are not using that functionality yet.