MCPcopy Create free account
hub / github.com/Effect-TS/effect / primaryKeyByAddress

Function primaryKeyByAddress

packages/effect/src/unstable/cluster/Envelope.ts:427–434  ·  view source on GitHub ↗
(options: {
  readonly address: EntityAddress
  readonly tag: string
  readonly id: string
})

Source from the content-addressed store, hash-verified

425 * @since 4.0.0
426 */
427export const primaryKeyByAddress = (options: {
428 readonly address: EntityAddress
429 readonly tag: string
430 readonly id: string
431}): string =>
432 // storage drivers with fixed-width key columns (e.g. SqlMessageStorage)
433 // hash this composed key at their own boundary
434 `${options.address.entityType}/${options.address.entityId}/${options.tag}/${options.id}`

Callers 1

primaryKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected