MCPcopy Create free account
hub / github.com/cosdata/cosdata / append_to_wal

Method append_to_wal

src/models/collection_transaction.rs:248–256  ·  view source on GitHub ↗
(
        &self,
        collection: &Collection,
        op: VectorOp,
    )

Source from the content-addressed store, hash-verified

246 }
247
248 pub fn append_to_wal(
249 &self,
250 collection: &Collection,
251 op: VectorOp,
252 ) -> Result<(), WaCustomError> {
253 let data = self.init(collection)?;
254 data.channel.send(op).unwrap();
255 Ok(())
256 }
257
258 pub fn pre_commit(self, collection: &Collection, config: &Config) -> Result<(), WaCustomError> {
259 let Some(data) = self.data.into_inner() else {

Callers 2

implicit_txn_upsertMethod · 0.80
implicit_txn_deleteMethod · 0.80

Calls 1

initMethod · 0.80

Tested by

no test coverage detected