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

Function saveValues

src/persisters/common/database/tabular.ts:139–158  ·  view source on GitHub ↗
(
    values: Values | {[valueId: Id]: ValueOrUndefined},
    partial?: boolean,
  )

Source from the content-addressed store, hash-verified

137 );
138
139 const saveValues = async (
140 values: Values | {[valueId: Id]: ValueOrUndefined},
141 partial?: boolean,
142 ) =>
143 valuesSave
144 ? await saveTable(
145 valuesTableName,
146 DEFAULT_ROW_ID_COLUMN_NAME,
147 {
148 [SINGLE_ROW_ID]: isUndefined(valuesSaveValueIds)
149 ? values
150 : getValuesSubset(values, valuesSaveValueIds, partial),
151 },
152 true,
153 true,
154 partial,
155 undefined,
156 valuesSaveValueIds,
157 )
158 : null;
159
160 const loadTables = async (): Promise<Tables> =>
161 objNew(

Callers 1

setPersistedFunction · 0.85

Calls 3

isUndefinedFunction · 0.90
saveTableFunction · 0.85
getValuesSubsetFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…