MCPcopy
hub / github.com/tinyplex/tinybase / getRelationshipsStoreTableIds

Function getRelationshipsStoreTableIds

src/ui-svelte/functions.svelte.ts:867–883  ·  view source on GitHub ↗
(
  relationshipsOrId: MaybeGetter<Relationships | Id | undefined>,
  relationshipId: MaybeGetter<Id>,
)

Source from the content-addressed store, hash-verified

865 );
866
867export const getRelationshipsStoreTableIds = (
868 relationshipsOrId: MaybeGetter<Relationships | Id | undefined>,
869 relationshipId: MaybeGetter<Id>,
870) => {
871 const getRelationships = resolveRelationships(relationshipsOrId);
872 return {
873 get store() {
874 return getRelationships()?.getStore();
875 },
876 get localTableId() {
877 return getRelationships()?.getLocalTableId(maybeGet(relationshipId));
878 },
879 get remoteTableId() {
880 return getRelationships()?.getRemoteTableId(maybeGet(relationshipId));
881 },
882 };
883};
884
885export const getCheckpoints = (id?: Id): Checkpoints | undefined =>
886 getProvidedThing(id, OFFSET_CHECKPOINTS) as Checkpoints | undefined;

Callers 6

RemoteRowViewFunction · 0.90
useComponentPerRowFunction · 0.90
contentFunction · 0.90
contentFunction · 0.90
RelationshipInHtmlTableFunction · 0.90
RelationshipInHtmlTableFunction · 0.90

Calls 1

resolveRelationshipsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…