Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ScriptedAlchemy/tracedecay
/ close_db
Function
close_db
tests/storage_suite/corruption_test.rs:34–37 ·
view source on GitHub ↗
(db: Database)
Source
from the content-addressed store, hash-verified
32
}
33
34
async fn close_db(db: Database) {
35
db.checkpoint().await.unwrap();
36
db.close();
37
}
38
39
/// Helper: create a sample node.
40
fn sample_node(id: &str, name: &str) -> Node {
Callers
9
quick_check_passes_on_healthy_db
Function · 0.85
quick_check_passes_after_inserts
Function · 0.85
rebuild_fts_on_fresh_db
Function · 0.85
rebuild_fts_restores_search_after_fts_damage
Function · 0.85
search_nodes_falls_back_to_like_when_fts_empty
Function · 0.85
bulk_load_preserves_platform_synchronous_mode
Function · 0.85
bulk_load_round_trip_preserves_data
Function · 0.85
corrupt_db_detected_and_repaired_on_reopen
Function · 0.85
fts_corruption_healed_by_search_nodes
Function · 0.85
Calls
2
checkpoint
Method · 0.45
close
Method · 0.45
Tested by
no test coverage detected