Skip to content

Commit 08e043b

Browse files
committed
store: Allow creating special Namespaces
1 parent 634c14a commit 08e043b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

store/postgres/src/primary.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,13 @@ impl Namespace {
266266
Namespace(format!("prune{id}"))
267267
}
268268

269+
/// A namespace that is not a deployment namespace. This is used for
270+
/// special namespaces we use. No checking is done on `s` and the caller
271+
/// must ensure it's a valid namespace name
272+
pub fn special(s: impl Into<String>) -> Self {
273+
Namespace(s.into())
274+
}
275+
269276
pub fn as_str(&self) -> &str {
270277
&self.0
271278
}

0 commit comments

Comments
 (0)