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

Function getPersisted

src/persisters/common/database/json.ts:51–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49 );
50
51 const getPersisted = (): Promise<PersistedContent<Persist>> =>
52 transaction(async () => {
53 await refreshSchema();
54 return jsonParseWithUndefined(
55 ((await loadTable(storeTableName, storeIdColumnName))[SINGLE_ROW_ID]?.[
56 storeColumnName
57 ] as string) ?? 'null',
58 );
59 });
60
61 const setPersisted = (
62 getContent: () => PersistedContent<Persist>,

Callers 1

loadFunction · 0.50

Calls 4

jsonParseWithUndefinedFunction · 0.90
refreshSchemaFunction · 0.85
loadTableFunction · 0.85
transactionFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…