MCPcopy Index your code
hub / github.com/totaljs/framework / tablewrapper

Function tablewrapper

index.js:1791–1805  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

1789};
1790
1791function tablewrapper(name) {
1792 var db = F.databases['$' + name];
1793 if (db)
1794 return db;
1795
1796 if (name[0] === '~') {
1797 db = framework_nosql.load(U.getName(name), name.substring(1), true);
1798 } else {
1799 F.path.verify('databases');
1800 db = framework_nosql.table(name, F.path.databases(name));
1801 }
1802
1803 F.databases['$' + name] = db;
1804 return db;
1805}
1806
1807global.TABLE = function(name) {
1808 if (!global.framework_nosql)

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected