MCPcopy
hub / github.com/electerm/electerm / getDatabase

Function getDatabase

test/unit/db-concurrency.spec.js:48–50  ·  view source on GitHub ↗
(dbName)

Source from the content-addressed store, hash-verified

46 }
47
48 function getDatabase (dbName) {
49 return dbName === 'data' ? dataDb : mainDb
50 }
51
52 function uid () {
53 return Math.random().toString(36).slice(2) + Date.now().toString(36)

Callers 1

actionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected