catalogTables method

Future<Uint8List?> catalogTables(
  1. int connectionId, {
  2. String catalog = '',
  3. String schema = '',
})

Returns catalog tables for connectionId (optional catalog and schema). Returns binary result or null on error.

Implementation

Future<Uint8List?> catalogTables(
  int connectionId, {
  String catalog = '',
  String schema = '',
}) async {
  final r = await _sendRequest<QueryResponse>(
    CatalogTablesRequest(
      _nextRequestId(),
      connectionId,
      catalog: catalog,
      schema: schema,
    ),
  );
  if (r.error != null) return null;
  return r.data;
}