MCPcopy
hub / github.com/aspen-cloud/triplit / insert

Method insert

packages/db/test/ivm.prototype.spec.ts:169–174  ·  view source on GitHub ↗
(collection: keyof T, data: T[C])

Source from the content-addressed store, hash-verified

167 }
168
169 insert(collection: keyof T, data: T[C]) {
170 if (!(collection in this.collections)) {
171 this.collections[collection] = new Map();
172 }
173 this.changesBuffer[collection].set(data.id, data);
174 }
175
176 update(collection: keyof T, id: string, data: Partial<T[C]>) {
177 if (!(collection in this.collections)) {

Callers 15

type-set.spec.tsFile · 0.45
seedMessagingDataFunction · 0.45
type-json.spec.tsFile · 0.45
schema.spec.tsFile · 0.45
enum-types.spec.tsFile · 0.45
messaging.spec.tsFile · 0.45
variables.spec.tsFile · 0.45
basic.spec.tsFile · 0.45

Calls 1

setMethod · 0.65

Tested by

no test coverage detected