(stored: &StoredFunction, catalog: &SystemCatalog)
| 9 | use crate::control::security::catalog::function_types::StoredFunction; |
| 10 | |
| 11 | pub fn put(stored: &StoredFunction, catalog: &SystemCatalog) { |
| 12 | if let Err(e) = catalog.put_function(stored) { |
| 13 | warn!( |
| 14 | function = %stored.name, |
| 15 | tenant = stored.tenant_id, |
| 16 | error = %e, |
| 17 | "catalog_entry: put_function failed" |
| 18 | ); |
| 19 | } |
| 20 | super::owner::put_parent_owner( |
| 21 | object_type::FUNCTION, |
| 22 | stored.tenant_id, |
| 23 | &stored.name, |
| 24 | &stored.owner, |
| 25 | catalog, |
| 26 | ); |
| 27 | } |
| 28 | |
| 29 | pub fn delete(tenant_id: u64, name: &str, catalog: &SystemCatalog) { |
| 30 | if let Err(e) = catalog.delete_function(tenant_id, name) { |
nothing calls this directly
no test coverage detected