Skip to content

Fix(macos) archive DB initialization and data directory creation#1050

Merged
shm11C3 merged 5 commits into
developfrom
fix/macos-hardware-archive
Jan 24, 2026
Merged

Fix(macos) archive DB initialization and data directory creation#1050
shm11C3 merged 5 commits into
developfrom
fix/macos-hardware-archive

Conversation

@shm11C3

@shm11C3 shm11C3 commented Jan 24, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings January 24, 2026 17:20
@github-actions github-actions Bot added bug Something isn't working rust Pull requests that update Rust code labels Jan 24, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates macOS app data path resolution and ensures the SQLite archive database directory exists before connecting, consolidating archive DB access through a shared pool helper.

Changes:

  • Add macOS-specific app data directory resolution (~/Library/Application Support/<identifier>), keeping Linux on ~/.config/<identifier>.
  • Ensure the database parent directory is created before SQLite connects.
  • Remove per-module DB pool creation in archive modules and reuse database::db::get_pool().

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
src-tauri/src/utils/file.rs Splits macOS vs Linux app data directory logic and extends tests for macOS paths.
src-tauri/src/infrastructure/database/db.rs Creates the DB parent directory before establishing the SQLx SQLite pool.
src-tauri/src/infrastructure/database/hardware_archive.rs Uses shared db::get_pool() instead of a local pool initializer.
src-tauri/src/infrastructure/database/gpu_archive.rs Uses shared db::get_pool() instead of a local pool initializer.

Comment thread src-tauri/src/utils/file.rs
Comment thread src-tauri/src/utils/file.rs
Comment thread src-tauri/src/infrastructure/database/db.rs Outdated
Comment thread src-tauri/src/infrastructure/database/db.rs Outdated
Copilot AI review requested due to automatic review settings January 24, 2026 17:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@shm11C3 shm11C3 merged commit 4583a3c into develop Jan 24, 2026
22 checks passed
@shm11C3 shm11C3 deleted the fix/macos-hardware-archive branch January 24, 2026 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants