Get the partitions endpoint path for a table.
(&self, database_name: &str, table_name: &str)
| 159 | |
| 160 | /// Get the partitions endpoint path for a table. |
| 161 | pub fn partitions(&self, database_name: &str, table_name: &str) -> String { |
| 162 | format!( |
| 163 | "{}/{}/{}/{}/{}/{}", |
| 164 | self.base_path, |
| 165 | Self::DATABASES, |
| 166 | RESTUtil::encode_string(database_name), |
| 167 | Self::TABLES, |
| 168 | RESTUtil::encode_string(table_name), |
| 169 | Self::PARTITIONS |
| 170 | ) |
| 171 | } |
| 172 | } |
| 173 | |
| 174 | #[cfg(test)] |
no outgoing calls
no test coverage detected