The latest version for DAS is WSO2 Data Analytics Server 3.1.0. View documentation for the latest release.
WSO2 Data Analytics Server is succeeded by WSO2 Stream Processor. To view the latest documentation for WSO2 SP, see WSO2 Stream Processor Documentation.

All docs This doc
Skip to end of metadata
Go to start of metadata



getSchema(tableName, success, error)


Returns the schema of a table.

OutputA 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);  

Sample output

		column1: {
			type: STRING,
			isScoreParam: FALSE,
			isIndex: TRUE
		column2: {
			type: INTEGER,
			isScoreParam: TRUE,
			isIndex: TRUE
	primaryKeys: [column1, column2]
  • No labels