Skip to main content

FILE_STATE_UPSERT

Constant FILE_STATE_UPSERT 

Source
const FILE_STATE_UPSERT: &str = "
    INSERT INTO file_state(path, size, mtime_ns, content_hash, contents)
    VALUES(?1, ?2, ?3, ?4, ?5)
    ON CONFLICT(path) DO UPDATE SET
        size = excluded.size,
        mtime_ns = excluded.mtime_ns,
        content_hash = excluded.content_hash,
        contents = excluded.contents
";