fix/create-and-migrate-db-on-run #21
No reviewers
Labels
No labels
bug
chore
CI/CD
Code Cleanup
duplicate
DX
enhancement
help wanted
invalid
packaging
question
UI
UX
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
waycasthq/waycast!21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/create-and-migrate-db-on-run"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
I was already using SQLx’s
migrate!macro andcreate_if_missingoption at startup lol. But there were a few little fixes missing.Closes #13
Added
Other changes
.envto haveSQLX_OFFLINE=trueso that we don't need a migrated dev database to compile since we now use the generated metadata in.sqlxanyway.lgtm
@ -347,3 +347,2 @@let directory = tempfile::tempdir().expect("temporary database directory");let database_url = format!("sqlite://{}", directory.path().join("waycast.db").display());let database = WaycastData::writeable_connection(database_url).await;let database = WaycastData::writeable_connection(directory.path().join("waycast.db"))remove magic temporary
nvm it's just a test