canRead method

bool canRead(
  1. String database,
  2. String table, {
  3. List<String>? namespace,
})

Implementation

bool canRead(String database, String table, {List<String>? namespace}) {
  if (databases == null) return true;
  return _matchingTables(database: database, table: table, namespace: namespace).any((tableGrant) => tableGrant.read);
}