Skip to main content

current

Function current 

Source
pub async fn current(
    pool: &Pool,
    page_id: i64,
) -> Result<Option<PageLock>, ExecError>
Expand description

Look up the current lock on a page without mutating it. Returns None if no row exists OR the row is stale. The admin page_edit_form calls this before deciding whether to render the banner.

ยงErrors

Driver / query failures.