MCPcopy Create free account
hub / github.com/tinyplex/tinybase / synchronizeTransactions

Function synchronizeTransactions

src/queries/index.ts:268–280  ·  view source on GitHub ↗
(
    queryId: Id,
    fromStore: Store,
    toStore: Store,
  )

Source from the content-addressed store, hash-verified

266 });
267
268 const synchronizeTransactions = (
269 queryId: Id,
270 fromStore: Store,
271 toStore: Store,
272 ) =>
273 addPreStoreListener(
274 fromStore,
275 queryId,
276 fromStore.addStartTransactionListener(toStore.startTransaction),
277 fromStore.addDidFinishTransactionListener(() =>
278 toStore.finishTransaction(),
279 ),
280 );
281
282 const setOrDelParamValues = (queryId: Id, paramValues: ParamValues) =>
283 (objIsEmpty(paramValues) ? paramStore.delRow : paramStore.setRow)(

Callers 1

setQueryDefinitionImplFunction · 0.70

Calls 4

addPreStoreListenerFunction · 0.70
finishTransactionMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…