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

Function fact_exists

tests/automation_runner_test/support.rs:925–935  ·  view source on GitHub ↗
(cg: &TraceDecay, fact_id: i64)

Source from the content-addressed store, hash-verified

923}
924
925pub(crate) async fn fact_exists(cg: &TraceDecay, fact_id: i64) -> bool {
926 let conn = cg.db().conn();
927 let mut rows = conn
928 .query(
929 "SELECT 1 FROM memory_facts WHERE fact_id = ?1 LIMIT 1",
930 libsql::params![fact_id],
931 )
932 .await
933 .unwrap();
934 rows.next().await.unwrap().is_some()
935}
936
937pub(crate) async fn read_artifact(
938 cg: &TraceDecay,

Callers

nothing calls this directly

Calls 2

connMethod · 0.45
dbMethod · 0.45

Tested by

no test coverage detected