The Select api is used to select data from a database.

Sql

Select * from Table_Name;

JsStore

connection.select({
    from: "Table_Name"
}).then(function(results) {
    //results will be array of objects.
    console.log(results);
}).catch(function(error) {
    alert(error.message);
});

Example