Create database if it doesn't exist #13

Closed
opened 2026-07-02 01:59:51 +00:00 by javif89 · 0 comments
Owner

The database setup for waycast currently only exists in dev. We touch the file and run migrations with the sqlx CLI. Realistically, we should create the file and directory needed if it doesn't exist, and run migrations when waycast starts.

Figure out the right way to do this with SQLX.

The migrate! macro will probably be it, but we should figure out the right way to embed the migrations into the binary.

The database setup for waycast currently only exists in dev. We touch the file and run migrations with the sqlx CLI. Realistically, we should create the file and directory needed if it doesn't exist, and run migrations when waycast starts. Figure out the right way to do this with SQLX. The `migrate!` macro will probably be it, but we should figure out the right way to embed the migrations into the binary.
javif89 self-assigned this 2026-07-02 02:00:03 +00:00
javif89 added this to the v1.0.0 milestone 2026-07-02 02:00:07 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
waycasthq/waycast#13
No description provided.