Skip to main content

upsert_in

Function upsert_in 

Source
fn upsert_in(
    rows: &mut Vec<Row>,
    agent: &str,
    sites: &[String],
    powers: &[String],
    wildcard_ok: bool,
    now_ms: i64,
) -> Result<Row, String>
Expand description

Add or replace the row for agent on sites (the first names the row). A wildcard (*.example.com) is only for a preset or a banner the person answered (wildcard_ok): a row the person types in names one site.