getAll<T extends SupabaseObject> static method

Future<List<T>> getAll<T extends SupabaseObject>({
  1. List<String> selectedColumns = const ['*'],
})

Implementation

static Future<List<T>> getAll<T extends SupabaseObject>({
  List<String> selectedColumns = const ['*'],
}) async {
  try {
    return extractSupabaseList(
      await env.client.from(tableName(T)).select(selectedColumns.join(',')),
    );
  } catch (error, stacktrace) {
    catchSupabaseException(error, stacktrace);
    rethrow;
  }
}