Skip to main content

INSERT_SESSION_SQL

Constant INSERT_SESSION_SQL 

Source
pub const INSERT_SESSION_SQL: &str = "
INSERT OR IGNORE INTO sessions (
    session_id, proxy, started_at, last_seen_at,
    client_name, client_version, client_platform,
    total_calls, total_errors
) VALUES (?1, ?2, ?3, ?3, ?4, ?5, ?6, 0, 0);
";
Expand description

INSERT a new session row. Uses INSERT OR IGNORE because a reconnecting client may re-send initialize with the same session ID.