* garrow_schema_with_metadata: * @schema: A #GArrowSchema. * @metadata: (element-type utf8 utf8): A new associated metadata. * * Returns: (transfer full): The new schema with the given metadata. * * Since: 0.17.0 */
| 458 | * Since: 0.17.0 |
| 459 | */ |
| 460 | GArrowSchema * |
| 461 | garrow_schema_with_metadata(GArrowSchema *schema, GHashTable *metadata) |
| 462 | { |
| 463 | const auto arrow_schema = garrow_schema_get_raw(schema); |
| 464 | auto arrow_metadata = garrow_internal_hash_table_to_metadata(metadata); |
| 465 | auto arrow_new_schema = arrow_schema->WithMetadata(arrow_metadata); |
| 466 | return garrow_schema_new_raw(&arrow_new_schema); |
| 467 | } |
| 468 | |
| 469 | G_END_DECLS |
| 470 |
nothing calls this directly
no test coverage detected