MCPcopy Create free account
hub / github.com/CloudBoost/cloudboost / addColumn

Method addColumn

sdk/src/CloudTable.js:34–49  ·  view source on GitHub ↗
(column)

Source from the content-addressed store, hash-verified

32 }
33
34 addColumn(column){
35 if(Object.prototype.toString.call(column) === '[object String]') {
36 var obj = new CB.Column(column);
37 column = obj;
38 }
39 if (Object.prototype.toString.call(column) === '[object Object]') {
40 if(CB._columnValidation(column, this))
41 this.document.columns.push(column);
42
43 } else if (Object.prototype.toString.call(column) === '[object Array]') {
44 for(var i=0; i<column.length; i++){
45 if(CB._columnValidation(column[i], this))
46 this.document.columns.push(column[i]);
47 }
48 }
49 };
50
51 getColumn(columnName){
52 if(Object.prototype.toString.call(columnName) !== '[object String]') {

Callers 14

test.jsFile · 0.80
acl.jsFile · 0.80
cloudtable.jsFile · 0.80
test.jsFile · 0.80
test.jsFile · 0.80
defaultValue.jsFile · 0.80
CloudGeoPoint.jsFile · 0.80
queryTest.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected