MCPcopy Create free account
hub / github.com/effect-app/libs / nsPrefix

Function nsPrefix

packages/infra/src/Store/Cosmos.ts:116–116  ·  view source on GitHub ↗
(ns: string)

Source from the content-addressed store, hash-verified

114
115 const basePartitionKey = config?.partitionValue() ?? "primary"
116 const nsPrefix = (ns: string) => ns === "primary" ? "" : `${ns}::`
117 const nsPartitionValue = (ns: string, e?: Encoded) => {
118 const base = config?.partitionValue(e) ?? "primary"
119 return `${nsPrefix(ns)}${base}`

Callers 2

nsPartitionValueFunction · 0.85
nsBasePartitionKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…