doc: update documentation of catalog.insert_many

This commit is contained in:
2025-11-11 11:04:09 +01:00
parent 6a8351b4d6
commit 25a39ce54c

View File

@@ -14,6 +14,11 @@ impl Catalog {
/// # Arguments
///
/// * `objects` - A vector of objects to insert or update.
///
/// # Errors
///
/// Returns `Err(FailedTo)` if any of the underlying `upsert` operations fail.
/// This could be due to issues like an object not having a valid ID.
pub fn insert_many(&mut self, objects: Vec<impl EAV>) -> Result<(), FailedTo> {
for object in objects {
self.upsert(object)?;