[[arrow::export]]
| 36 | |
| 37 | // [[arrow::export]] |
| 38 | void set_timezone_database(cpp11::strings path) { |
| 39 | auto paths = cpp11::as_cpp<std::vector<std::string>>(path); |
| 40 | if (path.size() != 1) { |
| 41 | cpp11::stop("Must provide a single path to the timezone database."); |
| 42 | } |
| 43 | |
| 44 | ARROW_SUPPRESS_DEPRECATION_WARNING |
| 45 | arrow::GlobalOptions options; |
| 46 | options.timezone_db_path = std::make_optional(paths[0]); |
| 47 | ARROW_UNSUPPRESS_DEPRECATION_WARNING |
| 48 | arrow::StopIfNotOk(arrow::Initialize(options)); |
| 49 | } |
no test coverage detected