Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ All notable changes to Craqle are documented here.
- Full-text search also matches indexed words that start with a query word of at least three
characters, so `SAMD` finds `SAMD00012345`. Exact word matches rank above such prefix matches.
A very broad prefix keeps the prefix matches that fit the query budget instead of failing.
- `CraqleNode::store_database` returns the graph store's Fjall database for live backups.

### Changed

Expand Down
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4699,6 +4699,12 @@ impl CraqleNode {
Ok(self.store.persist()?)
}

/// The graph store's Fjall database. Its snapshots give a consistent copy of the
/// authoritative graph data while the node keeps running, for example for backups.
pub fn store_database(&self) -> fjall::Database {
self.store.database().clone()
}

/// Apply each replicated compare-and-set under the graph write lock.
/// This preserves tombstone, policy, and context ordering across peers.
#[cfg(test)]
Expand Down
Loading