doc: update documentation of catalog.insert_many
This commit is contained in:
@@ -14,6 +14,11 @@ impl Catalog {
|
|||||||
/// # Arguments
|
/// # Arguments
|
||||||
///
|
///
|
||||||
/// * `objects` - A vector of objects to insert or update.
|
/// * `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> {
|
pub fn insert_many(&mut self, objects: Vec<impl EAV>) -> Result<(), FailedTo> {
|
||||||
for object in objects {
|
for object in objects {
|
||||||
self.upsert(object)?;
|
self.upsert(object)?;
|
||||||
|
|||||||
Reference in New Issue
Block a user