You can call the ListTable operation to query the names of all tables that are created in the current instance.

Note For more information about the ListTable operation, see ListTable.

Prerequisites

  • A Tablestore client is initialized. For more information, see Initialization.
  • A data table is created.

API operations

/**
 * Query the names of all tables in the current instance. 
 */
listTable(params, callback)          

Examples

The following code provides an example on how to query the names of all tables in an instance:

var client = require('./client');

client.listTable({}, function (err, data) {
    if (err) {
        console.log('error:', err);
        return;
    }
    console.log('success:', data);
});            

For the detailed sample code, visit ListTable@GitHub.