summaryrefslogtreecommitdiffstats
path: root/src/db/world.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/world.rs')
-rw-r--r--src/db/world.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/db/world.rs b/src/db/world.rs
index 49779b9..73e327f 100644
--- a/src/db/world.rs
+++ b/src/db/world.rs
@@ -24,6 +24,11 @@ pub fn put_world_snapshot(writer: &Writer, members: &[WorldMember]) -> Result<i6
})
}
+/// Read the members of a world snapshot.
+///
+/// Test-tier only: production writes world snapshots and never reads one back
+/// member by member; the index is served from the release rows.
+#[cfg(feature = "test-support")]
pub fn world_members(db: &Db, id: i64) -> Result<Vec<WorldMember>> {
db.read(|c| {
let s: String = c.query_row(