Get the tables endpoint path.
(&self, database_name: Option<&str>)
| 80 | |
| 81 | /// Get the tables endpoint path. |
| 82 | pub fn tables(&self, database_name: Option<&str>) -> String { |
| 83 | if let Some(db_name) = database_name { |
| 84 | format!( |
| 85 | "{}/{}/{}/{}", |
| 86 | self.base_path, |
| 87 | Self::DATABASES, |
| 88 | RESTUtil::encode_string(db_name), |
| 89 | Self::TABLES |
| 90 | ) |
| 91 | } else { |
| 92 | format!("{}/{}", self.base_path, Self::TABLES) |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | /// Get a specific table endpoint path. |
| 97 | pub fn table(&self, database_name: &str, table_name: &str) -> String { |
no outgoing calls
no test coverage detected