Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Preflight attachment data to ensure we have enough disk space to write the export #201

Closed
ReagentX opened this issue Nov 20, 2023 · 0 comments
Assignees
Labels
crate: cli Related to the CLI crate crate: database Related to the database crate new feature Requires creating a new feature

Comments

@ReagentX
Copy link
Owner

Currently, we get the total attachment bytes during the diagnostic phase:

let mut bytes_query = db
.prepare(&format!("SELECT SUM(total_bytes) FROM {ATTACHMENT}"))
.map_err(TableError::Messages)?;
let total_bytes: i64 = bytes_query.query_row([], |r| r.get(0)).unwrap_or(0);

We can use this data to ensure that the disk has enough free space for the export to run.

@ReagentX ReagentX added crate: database Related to the database crate crate: cli Related to the CLI crate new feature Requires creating a new feature labels Nov 20, 2023
@ReagentX ReagentX self-assigned this Nov 20, 2023
@ReagentX ReagentX moved this to In Progress in 1.8: Velvet Ash Nov 20, 2023
@ReagentX ReagentX moved this from In Progress to Todo in 1.8: Velvet Ash Nov 20, 2023
@ReagentX ReagentX moved this from Todo to In Progress in 1.8: Velvet Ash Nov 20, 2023
ReagentX added a commit that referenced this issue Nov 21, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Done in 1.8: Velvet Ash Nov 22, 2023
@ReagentX ReagentX mentioned this issue Nov 23, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
crate: cli Related to the CLI crate crate: database Related to the database crate new feature Requires creating a new feature
Projects
No open projects
Status: Done
Development

No branches or pull requests

1 participant