* garrow_schema_get_fields: * @schema: A #GArrowSchema. * * Returns: (element-type GArrowField) (transfer full): * The fields of the schema. */
| 281 | * The fields of the schema. |
| 282 | */ |
| 283 | GList * |
| 284 | garrow_schema_get_fields(GArrowSchema *schema) |
| 285 | { |
| 286 | const auto arrow_schema = garrow_schema_get_raw(schema); |
| 287 | |
| 288 | GList *fields = NULL; |
| 289 | for (auto arrow_field : arrow_schema->fields()) { |
| 290 | auto field = garrow_field_new_raw(&arrow_field, nullptr); |
| 291 | fields = g_list_prepend(fields, field); |
| 292 | } |
| 293 | |
| 294 | return g_list_reverse(fields); |
| 295 | } |
| 296 | |
| 297 | /** |
| 298 | * garrow_schema_to_string: |
nothing calls this directly
no test coverage detected