v0.2.13
RustBox CI / rustbox (push) Canceled after 0s

This commit is contained in:
Mateusz Gruszczyński committed 2026-11-02 14:23:13 +01:00
1 parent 83440f20e2
commit 12e0c99850
32 files changed
+729 -109

No files matched your search

+11
View File
@@ -168,6 +168,9 @@ pub mod db_drafts {
pub const Q_008: &str = "DELETE FROM draft_attachments WHERE id = $1";
pub const Q_009: &str =
"UPDATE draft_attachments SET file_path=$1, checksum_sha256=$2 WHERE id=$3";
pub const Q_010: &str = "SELECT id FROM drafts WHERE id=$1 FOR UPDATE";
pub const Q_011: &str = "SELECT id, draft_id, filename, content_type, size, file_path, checksum_sha256, created_at FROM draft_attachments WHERE draft_id=$1 AND id=$2 FOR UPDATE";
pub const Q_012: &str = "SELECT id, draft_id, filename, content_type, size, file_path, checksum_sha256, created_at FROM draft_attachments WHERE draft_id=$1 ORDER BY created_at ASC FOR UPDATE";
}
pub mod db_folder_preferences {
@@ -528,3 +531,11 @@ pub mod db_search_outbox {
pub const Q_006: &str = "UPDATE search_outbox SET claimed_until=$3 WHERE id=$1 AND generation=$2 AND dead_letter=0 AND available_at <= $4 AND claimed_until <= $4";
pub const Q_007: &str = "DELETE FROM search_outbox WHERE updated_at < $1";
}
pub mod db_blob_delete_outbox {
pub const Q_001: &str = "INSERT INTO blob_delete_outbox (id, storage_key, attempts, available_at, claimed_until, last_error, created_at, updated_at) VALUES ($1, $2, 0, 0, 0, NULL, $3, $3)";
pub const Q_002: &str = "SELECT id, storage_key, attempts FROM blob_delete_outbox WHERE available_at <= $1 AND claimed_until <= $1 ORDER BY updated_at ASC LIMIT $2";
pub const Q_003: &str = "UPDATE blob_delete_outbox SET claimed_until=$2 WHERE id=$1 AND available_at <= $3 AND claimed_until <= $3";
pub const Q_004: &str = "DELETE FROM blob_delete_outbox WHERE id=$1";
pub const Q_005: &str = "UPDATE blob_delete_outbox SET attempts=$2, available_at=$3, claimed_until=0, last_error=$4, updated_at=$5 WHERE id=$1";
}