MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / marker_version

Function marker_version

src/sessions/transcript_backfill.rs:124–138  ·  view source on GitHub ↗
(conn: &Connection)

Source from the content-addressed store, hash-verified

122}
123
124async 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)`.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected