inspect method

Future<Map<String, DataType>> inspect(
  1. String table
)

Restore a previous version of a table

Implementation

Future<Map<String, DataType>> inspect(String table) async {
  final json = (await room.sendRequest("database.inspect", {"table": table}) as JsonResponse);
  final schema = json.json["schema"] as Map;
  return {for (final k in schema.keys) k: DataType.fromJson(schema[k])};
}