/// Update a metadata entity. The `entity` should only contain the fields
/// that should be changed.
Update a metadata entity. The `entity` should only contain the fields
that should be changed.
Update a metadata entity . The ` entity ` should only contain the fields that should be changed .
pub(crate) fn update_metadata(
        &self,
        key: &EntityKey,
        entity: &Entity,
    ) -> Result<usize, StoreError> {
        match &*self.metadata {
            Storage::Json(json) => json.update_metadata(&self.conn, key, entity),
            Storage::Relational(_) => unreachable!("relational storeage is not used for metadata"),
        }
    }
pub ( crate ) fn update_metadata ( & self , key : & EntityKey , entity : & Entity , ) -> Result < usize , StoreError > { match & * self . metadata { Storage :: Json ( json ) => json . update_metadata ( & self . conn , key , entity ) , Storage :: Relational ( _ ) => unreachable ! ( " " ) , } }
Update a metadata entity.
Update a metadata entity .
&self
key
&EntityKey
entity
&Entity