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

Function schema_version

src/sessions/git_correlation.rs:464–473  ·  view source on GitHub ↗
(conn: &Connection)

Source from the content-addressed store, hash-verified

462}
463
464async fn schema_version(conn: &Connection) -> Option<i64> {
465 let mut rows = conn
466 .query(
467 "SELECT version FROM session_schema_migrations WHERE name = ?1",
468 params![MIGRATION_NAME],
469 )
470 .await
471 .ok()?;
472 rows.next().await.ok()??.get(0).ok()
473}
474
475fn opt_text(value: Option<&str>) -> Value {
476 value.map_or(Value::Null, |text| Value::Text(text.to_string()))

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected