Function
primaryKeyByAddress
(options: {
readonly address: EntityAddress
readonly tag: string
readonly id: string
})
Source from the content-addressed store, hash-verified
| 425 | * @since 4.0.0 |
| 426 | */ |
| 427 | export 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}` |
Tested by
no test coverage detected