Skip to main content

upsert_page

Function upsert_page 

Source
pub fn upsert_page(
    conn: &Connection,
    slug: &str,
    title: &str,
    file_path: Option<&str>,
    content_hash: Option<&str>,
    is_placeholder: bool,
) -> Result<(), LoreError>
Expand description

Upsert a page (insert or update on slug conflict).