MCPcopy Index your code
hub / github.com/share/sharedb / createDoc

Function createDoc

test/db.js:138–141  ·  view source on GitHub ↗
(db, callback)

Source from the content-addressed store, hash-verified

136 });
137
138 function createDoc(db, callback) {
139 var ops = [{v: 0, create: {type: 'json0', data: {x: 3}}}];
140 commitConcurrent(db, ops, null, callback);
141 }
142
143 function testOpCommit(ops, snapshot) {
144 expect(snapshot.v).equal(2);

Callers 1

db.jsFile · 0.70

Calls 1

commitConcurrentFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…