select method
Selects all records in a table, or a specific record.
Implementation
Future<dynamic> select(String thing) {
final id = _generateId();
final completer = Completer();
wait().then((_) {
once(id, (res) => _output(res, 'select', thing, completer));
_send(id, 'select', [thing]);
});
return completer.future;
}