* garrow_s3_initialize: * @options: (nullable): Options to initialize the S3 APIs. * @error: (nullable): Return location for a #GError or %NULL. * * Normally, you don't need to call this function because the S3 APIs * are initialized with the default options automatically. If you want * to call this function, you must call this function before you use * any #GArrowS3FileSystem related APIs.
| 1501 | * Since: 7.0.0 |
| 1502 | */ |
| 1503 | gboolean |
| 1504 | garrow_s3_initialize(GArrowS3GlobalOptions *options, GError **error) |
| 1505 | { |
| 1506 | #ifdef ARROW_S3 |
| 1507 | auto arrow_options = garrow_s3_global_options_get_raw(options); |
| 1508 | return garrow::check(error, |
| 1509 | arrow::fs::InitializeS3(*arrow_options), |
| 1510 | "[s3][initialize]"); |
| 1511 | #else |
| 1512 | return garrow::check( |
| 1513 | error, |
| 1514 | arrow::Status::NotImplemented("Apache Arrow C++ isn't built with S3 support"), |
| 1515 | "[s3][initialize]"); |
| 1516 | #endif |
| 1517 | } |
| 1518 | |
| 1519 | /** |
| 1520 | * garrow_s3_finalize: |
nothing calls this directly
no test coverage detected