MCPcopy Index your code
hub / github.com/tinyplex/tinybase / getPersisted

Function getPersisted

src/persisters/common/database/tabular.ts:188–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

186 : {};
187
188 const getPersisted = (): Promise<PersistedContent<Persist> | undefined> =>
189 transaction(async () => {
190 await refreshSchema();
191 const tables = await loadTables();
192 const values = await loadValues();
193 return !objIsEmpty(tables) || !isUndefined(values)
194 ? [tables as Tables, values as Values]
195 : undefined;
196 }) as any;
197
198 const setPersisted = (
199 getContent: () => PersistedContent<Persist>,

Callers

nothing calls this directly

Calls 6

objIsEmptyFunction · 0.90
isUndefinedFunction · 0.90
refreshSchemaFunction · 0.85
loadTablesFunction · 0.85
loadValuesFunction · 0.85
transactionFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…