Read a function record from this node's local `SystemCatalog` redb (which the applier writes through on every node).
(&self, tenant_id: u64, name: &str)
| 166 | /// Read a function record from this node's local `SystemCatalog` |
| 167 | /// redb (which the applier writes through on every node). |
| 168 | pub fn has_function(&self, tenant_id: u64, name: &str) -> bool { |
| 169 | self.shared |
| 170 | .credentials |
| 171 | .catalog() |
| 172 | .as_ref() |
| 173 | .and_then(|c| c.get_function(tenant_id, name).ok().flatten()) |
| 174 | .is_some() |
| 175 | } |
| 176 | |
| 177 | /// Read a procedure record from this node's local `SystemCatalog`. |
| 178 | pub fn has_procedure(&self, tenant_id: u64, name: &str) -> bool { |
no test coverage detected