All docs
This doc
Function |
|
---|---|
Description | Returns the schema of a table. |
Output | A JSON object containing the schema of the table in the ‘message’ element within the argument of the success callback. |
client.getSchema("SampleTable", function(data) { console.log (data["message"]); }, function(error) { console.log("error occured: " + error); });
{ columns: { column1: { type: STRING, isScoreParam: FALSE, isIndex: TRUE }, column2: { type: INTEGER, isScoreParam: TRUE, isIndex: TRUE } } primaryKeys: [column1, column2] }