(conn: &Connection)
| 122 | } |
| 123 | |
| 124 | async fn marker_version(conn: &Connection) -> i64 { |
| 125 | let Ok(mut rows) = conn |
| 126 | .query( |
| 127 | "SELECT version FROM session_schema_migrations WHERE name = ?1", |
| 128 | params![MARKER_NAME], |
| 129 | ) |
| 130 | .await |
| 131 | else { |
| 132 | return 0; |
| 133 | }; |
| 134 | match rows.next().await { |
| 135 | Ok(Some(row)) => row.get(0).unwrap_or(0), |
| 136 | _ => 0, |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | /// Messages that still know where they came from and are missing a fact this |
| 141 | /// pass can derive: `(provider, message_id, source_path, source_offset)`. |
no outgoing calls
no test coverage detected