Skip to main content

get

Function get 

Source
pub async fn get(
    pool: &Pool,
    scope: &str,
) -> Result<Option<SiteSetting>, ExecError>
Expand description

Fetch a setting row by scope. Returns None when no row exists — templates should treat absence as “settings haven’t been configured yet” rather than erroring.

§Errors

Driver / query failures.