Skip to main content

read_content

Function read_content 

Source
pub async fn read_content(
    pool: &Pool,
    id: i64,
) -> Result<Option<ContentRow>, Error>
Expand description

Look up a single content row by message_queue_contents.id. Returns None when the id doesn’t exist; a per-kind miss is DB corruption and surfaces as Error::InvalidData.