def write_batch

mylsm-lsm-store@0.6.0.1 · src/coordinator/ByteClient.bend:182

import mylsm-lsm-store@0.6.0.1/src/coordinator/ByteClient.bend as ByteClient
import Base
import mylsm-lsm-store@0.6.0.1/src/coordinator/Client.bend as Client
import mylsm-lsm-store@0.6.0.1/src/ByteWal.bend as ByteWal

182# Commits raw byte mutations as one owner-side atomic batch.
183def write_batch(
184  session: Client.Session,
185  mutations: List<&1, ByteWal.Mutation>
186) -> IO(Client.Session & Result<&1, &1, Client.Error, Unit>):
187  write_batch.encoded(session, ByteWal.encode(ByteWal.Batch{mutations}))

Uses (11)

Used by (1)