(
&mut self,
name: String,
next_id: u64,
)
| 1039 | } |
| 1040 | |
| 1041 | pub(crate) fn insert_id_allocator( |
| 1042 | &mut self, |
| 1043 | name: String, |
| 1044 | next_id: u64, |
| 1045 | ) -> Result<(), CatalogError> { |
| 1046 | match self.id_allocator.insert( |
| 1047 | IdAllocKey { name: name.clone() }, |
| 1048 | IdAllocValue { next_id }, |
| 1049 | self.op_id, |
| 1050 | ) { |
| 1051 | Ok(_) => Ok(()), |
| 1052 | Err(_) => Err(SqlCatalogError::IdAllocatorAlreadyExists(name).into()), |
| 1053 | } |
| 1054 | } |
| 1055 | |
| 1056 | /// Removes the database `id` from the transaction. |
| 1057 | /// |
no test coverage detected