Skip to content

Commit

Permalink
Send a complete graph on save
Browse files Browse the repository at this point in the history
  • Loading branch information
michaellperry committed Nov 2, 2023
1 parent 5d20075 commit 19ea942
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Jinaga.Store.SQLite/SQLiteStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,19 @@ FROM fact f
JOIN fact_type t
ON f.fact_type_id = t.fact_type_id
WHERE fact_id > {lastFactId}
UNION
SELECT f2.fact_id, f2.hash, f2.data, t2.name
FROM fact f1
JOIN ancestor a
ON a.fact_id = f1.fact_id
JOIN fact f2
ON f2.fact_id = a.ancestor_fact_id
JOIN fact_type t2
ON t2.fact_type_id = f2.fact_type_id
WHERE f1.fact_id > {lastFactId}
ORDER BY fact_id
";
return conn.ExecuteQuery<FactWithIdFromDb>(sql);
Expand Down

0 comments on commit 19ea942

Please sign in to comment.