~/bend-docscommunity

mylsm.bend relies on unsafe/foreign

raw source on the hub · import mylsm-lsm-store@0.6.0.2/mylsm.bend as Mylsm

Durable LSM key-value database with binary and UTF-8 APIs, atomic batches, snapshots, and backups.

34 imports
import Base
import ./src/DurableError.bend as DurableError
import bend-kit-bytes@0.3.2.0/bytes.bend as PackedBytes
import ./src/ByteDurableDb.bend as RawByteDb
import ./src/ByteWal.bend as RawByteWal
import ./src/ByteMemTable.bend as ByteMemTable
import ./src/scan/RangeCursor.bend as ByteRangeCursor
import ./src/scan/VisibleCursor.bend as VisibleByteCursor
import ./src/scan/Snapshot.bend as SnapshotPolicy
import ./src/scan/Utf8CursorPolicy.bend as Utf8CursorPolicy
import ./src/scan/CursorCleanupPolicy.bend as CursorCleanupPolicy
import ./src/transfer/Backup.bend as BackupCodec
import ./src/transfer/BackupIo.bend as BackupIo
import ./src/transfer/BackupCursorIo.bend as BackupCursorIo
import ./src/transfer/BackupOwnerCursorIo.bend as BackupOwnerCursorIo
import ./src/transfer/RestoreIo.bend as RestoreIo
import ./src/transfer/FormatInspect.bend as FormatInspect
import ./src/transfer/FormatInspectIo.bend as FormatInspectIo
import ./src/transfer/MigrateRunIo.bend as MigrateRunIo
import ./src/StorageBytes.bend as Utf8Codec
import ./src/Fs.bend as Fs
import ./src/coordinator/EndpointPath.bend as EndpointPath
import ./src/coordinator/OwnerGenerationIo.bend as OwnerGenerationIo
import ./src/coordinator/Client.bend as OwnerClient
import ./src/coordinator/ByteClient.bend as OwnerByteClient
import ./src/coordinator/CursorCodec.bend as OwnerCursorCodec
import ./src/coordinator/Protocol.bend as CoordinatorProtocol
import ./src/coordinator/StatsCodec.bend as OwnerStatsCodec
import ./src/coordinator/Io.bend as OwnerIo
import ./src/coordinator/UnixSocketIo.bend as OwnerSocket
import ./src/coordinator/CoordinatorPolicy.bend as OwnerPolicy
import ./src/coordinator/OwnerOpenPolicy.bend as OwnerOpenPolicy
import ./src/ResourceOptions.bend as ResourceOptions
import ./src/coordinator/OptionsCodec.bend as OwnerOptionsCodec

Types

type ManifestStatus source · line 38 · raw

Data

Describes manifest validation independently from package/storage identity.

type ManifestInspection source · line 47 · raw

Data

Reports package version, storage generation, and validation status.

type InspectionError source · line 52 · raw

Data

Reports lock or host errors from the read-only inspection operation.

type Bytes.Error source · line 59 · raw

Data

type Bytes.Stats source · line 73 · raw

Data

type Bytes.Snapshot source · line 76 · raw

Type

type Bytes.BackupStream source · line 80 · raw

Type

type Bytes.BackupStep source · line 83 · raw

Type

type Bytes.Handle source · line 181 · raw

Type

type Bytes.Mutation source · line 185 · raw

Type

type Bytes.ScanBounds source · line 189 · raw

Type

type Bytes.Cursor source · line 193 · raw

Type

type Bytes.ScanStep source · line 202 · raw

Type

type Bytes.StreamStep source · line 208 · raw

Type

type Utf8.Error source · line 1790 · raw

Type

type Utf8.Handle source · line 1803 · raw

Type

type Utf8.Mutation source · line 1806 · raw

Data

type Utf8.Stats source · line 1810 · raw

Type

type Utf8.CursorState source · line 1813 · raw

Type

type Utf8.Cursor source · line 1819 · raw

Type

type Utf8.Snapshot source · line 1822 · raw

Type

type Utf8.BackupStream source · line 1825 · raw

Type

type Utf8.BackupStep source · line 1828 · raw

Type

type Utf8.ScanStep source · line 1832 · raw

Type

Definitions

def Bytes.error source · line 88 · raw

@error:0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Error -> Bytes.Error

Converts internal byte-engine errors into the public byte API error type.

def Bytes.error.result source · line 101 · raw

@result:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Error, Unit> -> Result<&1, &1, Bytes.Error, Unit>

def Bytes.error.maybe source · line 106 · raw

@result:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>> -> Result<&1, &1, Bytes.Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>

def Bytes.owner.error.status source · line 113 · raw

@status:0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Protocol.ResponseStatus -> Bytes.Error

def Bytes.owner.error.socket source · line 129 · raw

@error:0x7586b743ff7fd05e412d5115859629b6/src/coordinator/UnixSocketIo.Error -> Bytes.Error

def Bytes.owner.error.io source · line 135 · raw

@error:0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Io.Error -> Bytes.Error

def Bytes.owner.error.commit source · line 142 · raw

@error:0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Io.Error -> Bytes.Error

def Bytes.owner.error source · line 149 · raw

@error:0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Error -> Bytes.Error

def Bytes.owner.unit.result source · line 161 · raw

@pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session, Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Error, Unit>) -> Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Unit>)

def Bytes.owner.get.result source · line 170 · raw

@pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session, Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>) -> Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>)

def Bytes.mutations source · line 216 · raw

@mutations:List<&1, Bytes.Mutation> -> List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteWal.Mutation>

Converts public byte mutations into the durable WAL batch representation.

def Bytes.handle source · line 225 · raw

@result:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Error, 0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Handle> -> Result<&1, &1, Bytes.Error, Bytes.Handle>

def Bytes.remote.handshake.validated source · line 232 · raw

@session:0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session -> @decision:0x7586b743ff7fd05e412d5115859629b6/src/ResourceOptions.Decision -> Result<&1, &1, Bytes.Error, Bytes.Handle>

def Bytes.remote.handshake.result source · line 240 · raw

@pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session, Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Error, 0x7586b743ff7fd05e412d5115859629b6/src/coordinator/OptionsCodec.Decision>) -> Result<&1, &1, Bytes.Error, Bytes.Handle>

def Bytes.remote.handshake source · line 251 · raw

@pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session, Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Error, 0x7586b743ff7fd05e412d5115859629b6/src/coordinator/OptionsCodec.Decision>) -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>)

def Bytes.remote.role source · line 258 · raw

@endpoint:String -> @generation:U32 -> @role:0x7586b743ff7fd05e412d5115859629b6/src/coordinator/CoordinatorPolicy.OpenRole -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>)

def Bytes.endpoint.generation source · line 279 · raw

@endpoint:String -> @result:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/coordinator/OwnerGenerationIo.Error, U32> -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>)

def Bytes.endpoint.checked source · line 296 · raw

@canonical:String -> @endpoint:String -> @exists:Result<&1, &1, Pair(U32, String), Bool> -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>)

def Bytes.endpoint.path.pair.go source · line 314 · raw

@path:String -> @left:String -> @right:String -> Pair(String, String)

def Bytes.endpoint.path.pair source · line 325 · raw

@path:String -> Pair(String, String)

def Bytes.endpoint.exists source · line 328 · raw

@paths:Pair(String, Pair(String, String)) -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>)

def Bytes.endpoint.result source · line 337 · raw

@canonical:String -> @decision:0x7586b743ff7fd05e412d5115859629b6/src/coordinator/EndpointPath.Decision -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>)

def Bytes.canonical.endpoint.paths source · line 348 · raw

@paths:Pair(String, String) -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>)

def Bytes.canonical.endpoint source · line 357 · raw

@result:Result<&1, &1, Pair(U32, String), String> -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>)

def Bytes.owner.candidate source · line 367 · raw

@path:String -> @result:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Error, 0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Handle> -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>)

def Bytes.owner.wait.endpoint source · line 384 · raw

@canonical:String -> @timeout_ms:U32 -> @backoff_ms:U32 -> @exists:Result<&1, &1, Pair(U32, String), Bool> -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>)

def Bytes.owner.wait.endpoint.path source · line 402 · raw

@paths:Pair(String, String) -> @timeout_ms:U32 -> @backoff_ms:U32 -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>)

def Bytes.owner.wait.decided source · line 414 · raw

@canonical:String -> @decision:0x7586b743ff7fd05e412d5115859629b6/src/coordinator/EndpointPath.Decision -> @timeout_ms:U32 -> @backoff_ms:U32 -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>)

def Bytes.owner.wait.located source · line 428 · raw

@paths:Pair(String, String) -> @timeout_ms:U32 -> @backoff_ms:U32 -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>)

def Bytes.owner.wait.canonical source · line 439 · raw

@timeout_ms:U32 -> @backoff_ms:U32 -> @result:Result<&1, &1, Pair(U32, String), String> -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>)

def Bytes.owner.wait.candidate source · line 452 · raw

@path:String -> @timeout_ms:U32 -> @backoff_ms:U32 -> @result:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Error, 0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Handle> -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>)

def Bytes.create source · line 472 · raw

@+path:String -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>)

def Bytes.open_existing source · line 478 · raw

@+path:String -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>)

def Bytes.options.rejected source · line 484 · raw

@handle:Bytes.Handle -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>)

def Bytes.options.decided source · line 496 · raw

@decision:0x7586b743ff7fd05e412d5115859629b6/src/coordinator/OwnerOpenPolicy.Decision -> @handle:Bytes.Handle -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>)

def Bytes.options.local source · line 507 · raw

@options:0x7586b743ff7fd05e412d5115859629b6/src/ResourceOptions.Options -> @handle:Bytes.Handle -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>)

def Bytes.options.remote.result source · line 514 · raw

@pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session, Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Error, 0x7586b743ff7fd05e412d5115859629b6/src/coordinator/OptionsCodec.Decision>) -> @expected:0x7586b743ff7fd05e412d5115859629b6/src/ResourceOptions.Options -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>)

def Bytes.options.remote source · line 530 · raw

@session:0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session -> @expected:0x7586b743ff7fd05e412d5115859629b6/src/ResourceOptions.Options -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>)

def Bytes.options.opened source · line 540 · raw

@handle:Bytes.Handle -> @options:0x7586b743ff7fd05e412d5115859629b6/src/ResourceOptions.Options -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>)

def Bytes.options.opened.result source · line 548 · raw

@result:Result<&1, &1, Bytes.Error, Bytes.Handle> -> @options:0x7586b743ff7fd05e412d5115859629b6/src/ResourceOptions.Options -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>)

def Bytes.open_existing.options.decision source · line 557 · raw

@+path:String -> @decision:0x7586b743ff7fd05e412d5115859629b6/src/ResourceOptions.Decision -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>)

def Bytes.open_existing_with_options source · line 570 · raw

@+path:String -> @options:0x7586b743ff7fd05e412d5115859629b6/src/ResourceOptions.Options -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>)

def Bytes.create.options.probe.result source · line 577 · raw

@result:Result<&1, &1, Bytes.Error, Bytes.Handle> -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>)

def Bytes.create.options.probe source · line 594 · raw

@+path:String -> @options:0x7586b743ff7fd05e412d5115859629b6/src/ResourceOptions.Options -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>)

def Bytes.create.options.decision source · line 603 · raw

@+path:String -> @options:0x7586b743ff7fd05e412d5115859629b6/src/ResourceOptions.Options -> @is_default:Bool -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>)

def Bytes.create.options.validated source · line 612 · raw

@+path:String -> @decision:0x7586b743ff7fd05e412d5115859629b6/src/ResourceOptions.Decision -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>)

def Bytes.create_with_options source · line 623 · raw

@+path:String -> @options:0x7586b743ff7fd05e412d5115859629b6/src/ResourceOptions.Options -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>)

def Bytes.open_existing_wait source · line 629 · raw

@+path:String -> @timeout_ms:U32 -> @backoff_ms:U32 -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>)

def Bytes.put.result source · line 639 · raw

@pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Handle, Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Error, Unit>) -> Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Unit>)

def Bytes.write_batch.result source · line 646 · raw

@pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Handle, Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Error, Unit>) -> Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Unit>)

Wraps the raw handle returned after committing one public byte batch.

def Bytes.write_batch source · line 653 · raw

@handle:Bytes.Handle -> @mutations:List<&1, Bytes.Mutation> -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Unit>))

Commits a public binary batch as one WAL frame.

def Bytes.put source · line 669 · raw

@handle:Bytes.Handle -> @key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @value:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Unit>))

def Bytes.get.result source · line 686 · raw

@pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Handle, Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>) -> Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>)

def Bytes.delete.result source · line 692 · raw

@pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Handle, Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Error, Unit>) -> Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Unit>)

def Bytes.get source · line 698 · raw

@handle:Bytes.Handle -> @key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>))

def Bytes.delete source · line 715 · raw

@handle:Bytes.Handle -> @key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Unit>))

def Bytes.flush.result source · line 731 · raw

@pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Handle, Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Error, Unit>) -> Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Unit>)

Wraps the handle after publishing the durable byte SST snapshot.

def Bytes.flush source · line 738 · raw

@handle:Bytes.Handle -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Unit>))

Publishes the current byte state to an authenticated SST file.

def Bytes.compact source · line 751 · raw

@handle:Bytes.Handle -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Unit>))

Publishes a canonical byte snapshot with tombstones removed.

def Bytes.stats.local source · line 763 · raw

@pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Handle, 0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Stats) -> Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Bytes.Stats>)

def Bytes.stats.remote source · line 770 · raw

@pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session, Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Error, 0x7586b743ff7fd05e412d5115859629b6/src/coordinator/StatsCodec.Stats>) -> Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Bytes.Stats>)

def Bytes.stats source · line 781 · raw

@handle:Bytes.Handle -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Bytes.Stats>))

def Bytes.scan.from.snapshot source · line 793 · raw

@lower_pair:Pair(Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>) -> @upper:Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> @prefix:Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> @snapshot:Pair(0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Handle, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>) -> Pair(Bytes.Handle, Bytes.Cursor)

def Bytes.scan.raw source · line 807 · raw

@raw:0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Handle -> @bounds:Bytes.ScanBounds -> Pair(Bytes.Handle, Bytes.Cursor)

def Bytes.snapshot.limit source · line 812 · raw

Nat

def Bytes.snapshot.raw source · line 815 · raw

@pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Handle, Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Error, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>>) -> Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Bytes.Snapshot>)

def Bytes.snapshot.remote.opened.sessions source · line 822 · raw

@sessions:Pair(0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session, 0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session) -> @snapshot_id:U32 -> Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Bytes.Snapshot>)

def Bytes.snapshot.remote.opened source · line 831 · raw

@pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session, Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Error, U32>) -> Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Bytes.Snapshot>)

def Bytes.snapshot source · line 841 · raw

@handle:Bytes.Handle -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Bytes.Snapshot>))

def Bytes.snapshot.clone.local source · line 854 · raw

@entries:Pair(List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>) -> Pair(Bytes.Snapshot, Bytes.Snapshot)

def Bytes.snapshot.clone.remote source · line 860 · raw

@+snapshot_id:U32 -> @sessions:Pair(0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session, 0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session) -> Pair(Bytes.Snapshot, Bytes.Snapshot)

def Bytes.snapshot.clone source · line 869 · raw

@snapshot:Bytes.Snapshot -> Pair(Bytes.Snapshot, Bytes.Snapshot)

def Bytes.snapshot.cursor.ready source · line 877 · raw

@snapshot_entries:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @cursor_entries:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @lower:Pair(Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>) -> @bounds:0x7586b743ff7fd05e412d5115859629b6/src/scan/RangeCursor.Bounds -> Pair(Bytes.Snapshot, Bytes.Cursor)

def Bytes.snapshot.cursor.opened source · line 891 · raw

@entries:Pair(List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>, List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry>) -> @bounds:Pair(0x7586b743ff7fd05e412d5115859629b6/src/scan/RangeCursor.Bounds, 0x7586b743ff7fd05e412d5115859629b6/src/scan/RangeCursor.Bounds) -> Pair(Bytes.Snapshot, Bytes.Cursor)

def Bytes.snapshot.cursor source · line 904 · raw

@entries:List<&1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Entry> -> @bounds:Bytes.ScanBounds -> Pair(Bytes.Snapshot, Bytes.Cursor)

def Bytes.snapshot.cursor.result source · line 914 · raw

@pair:Pair(Bytes.Snapshot, Bytes.Cursor) -> Pair(Bytes.Snapshot, Result<&1, &1, Bytes.Error, Bytes.Cursor>)

def Bytes.snapshot.cursor.remote.sessions source · line 920 · raw

@+snapshot_id:U32 -> @+cursor_id:U32 -> @sessions:Pair(0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session, 0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session) -> Pair(Bytes.Snapshot, Result<&1, &1, Bytes.Error, Bytes.Cursor>)

def Bytes.snapshot.cursor.remote source · line 930 · raw

@snapshot_id:U32 -> @pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session, Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Error, U32>) -> Pair(Bytes.Snapshot, Result<&1, &1, Bytes.Error, Bytes.Cursor>)

def Bytes.snapshot.scan_range.local source · line 941 · raw

@snapshot:Bytes.Snapshot -> @lower:Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> @upper:Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> Pair(Bytes.Snapshot, Result<&1, &1, Bytes.Error, Bytes.Cursor>)

def Bytes.snapshot.scan_prefix.local source · line 953 · raw

@snapshot:Bytes.Snapshot -> @prefix:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> Pair(Bytes.Snapshot, Result<&1, &1, Bytes.Error, Bytes.Cursor>)

def Bytes.snapshot.scan_range source · line 964 · raw

@snapshot:Bytes.Snapshot -> @lower:Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> @upper:Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> IO(Pair(Bytes.Snapshot, Result<&1, &1, Bytes.Error, Bytes.Cursor>))

def Bytes.snapshot.scan_prefix source · line 980 · raw

@snapshot:Bytes.Snapshot -> @prefix:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> IO(Pair(Bytes.Snapshot, Result<&1, &1, Bytes.Error, Bytes.Cursor>))

def Bytes.snapshot.get.local.result source · line 994 · raw

@pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/ByteMemTable.Table, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>) -> Pair(Bytes.Snapshot, Result<&1, &1, Bytes.Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>)

def Bytes.snapshot.get.remote source · line 1001 · raw

@snapshot_id:U32 -> @pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session, Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>) -> Pair(Bytes.Snapshot, Result<&1, &1, Bytes.Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>)

def Bytes.snapshot.get source · line 1011 · raw

@snapshot:Bytes.Snapshot -> @key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> IO(Pair(Bytes.Snapshot, Result<&1, &1, Bytes.Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>))

def Bytes.snapshot.close.remote source · line 1028 · raw

@pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session, Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Error, Unit>) -> Result<&1, &1, Bytes.Error, Unit>

def Bytes.snapshot.close source · line 1035 · raw

@snapshot:Bytes.Snapshot -> IO(Result<&1, &1, Bytes.Error, Unit>)

def Bytes.backup.error source · line 1045 · raw

@error:0x7586b743ff7fd05e412d5115859629b6/src/transfer/Backup.Error -> Bytes.Error

def Bytes.backup.started source · line 1053 · raw

@handle:Bytes.Handle -> @result:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/transfer/Backup.Error, 0x7586b743ff7fd05e412d5115859629b6/src/transfer/Backup.Stream> -> Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Bytes.BackupStream>)

def Bytes.backup.snapshot source · line 1061 · raw

@pair:Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Bytes.Snapshot>) -> Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Bytes.BackupStream>)

def Bytes.backup source · line 1072 · raw

@handle:Bytes.Handle -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Bytes.BackupStream>))

Opens a stable logical export from one retained database snapshot.

def Bytes.backup.next.result source · line 1083 · raw

@result:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/transfer/Backup.Error, 0x7586b743ff7fd05e412d5115859629b6/src/transfer/Backup.Step> -> Result<&1, &1, Bytes.Error, Bytes.BackupStep>

def Bytes.backup_next source · line 1093 · raw

@stream:Bytes.BackupStream -> Result<&1, &1, Bytes.Error, Bytes.BackupStep>

Produces one bounded checksummed backup chunk per call.

def Bytes.backup_to.error source · line 1098 · raw

@error:0x7586b743ff7fd05e412d5115859629b6/src/transfer/BackupIo.Error -> Bytes.Error

def Bytes.backup_to.result source · line 1106 · raw

@handle:Bytes.Handle -> @result:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/transfer/BackupIo.Error, Unit> -> Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Unit>)

def Bytes.backup_to.opened source · line 1114 · raw

@path:String -> @entries:Nat -> @fuel:Nat -> @pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Handle, Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Error, 0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleCursor.Cursor>) -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Unit>))

def Bytes.backup_to.rooted source · line 1130 · raw

@path:String -> @entries:Nat -> @fuel:Nat -> @pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Handle, Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Error, 0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.SnapshotRoot>) -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Unit>))

def Bytes.backup_to.budgeted source · line 1151 · raw

@path:String -> @entries:Nat -> @pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Handle, Nat) -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Unit>))

def Bytes.backup_to.statsed source · line 1164 · raw

@path:String -> @pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Handle, 0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Stats) -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Unit>))

def Bytes.backup_to.remote.failed source · line 1173 · raw

@handle_session:0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session -> @snapshot_id:U32 -> @session:0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session -> @error:0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Error -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Unit>))

def Bytes.backup_to.remote.exported source · line 1185 · raw

@handle_session:0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session -> @result:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/transfer/BackupIo.Error, Unit> -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Unit>))

def Bytes.backup_to.remote.export.ready source · line 1192 · raw

@path:String -> @handle_session:0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session -> @source:0x7586b743ff7fd05e412d5115859629b6/src/transfer/BackupOwnerCursorIo.OwnerSource -> @counts:Pair(U32, U32) -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Unit>))

def Bytes.backup_to.remote.export.ready.copies source · line 1206 · raw

@path:String -> @handle_session:0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session -> @source:0x7586b743ff7fd05e412d5115859629b6/src/transfer/BackupOwnerCursorIo.OwnerSource -> @counts:Pair(U32, Pair(U32, U32)) -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Unit>))

def Bytes.backup_to.remote.export.opened source · line 1217 · raw

@path:String -> @handle_session:0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session -> @snapshot_id:U32 -> @entry_count:U32 -> @opened:Pair(0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session, Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Error, U32>) -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Unit>))

def Bytes.backup_to.remote.cursor.counted.result.copied source · line 1234 · raw

@path:String -> @handle_session:0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session -> @snapshot_ids:Pair(U32, Pair(U32, U32)) -> @pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session, Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Error, U32>) -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Unit>))

def Bytes.backup_to.remote.cursor.counted.result source · line 1254 · raw

@path:String -> @handle_session:0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session -> @snapshot_id:U32 -> @pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session, Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Error, U32>) -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Unit>))

def Bytes.backup_to.remote.cursor.counted source · line 1264 · raw

@path:String -> @handle_session:0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session -> @snapshot_id:U32 -> @opened:Pair(0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session, Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Error, U32>) -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Unit>))

def Bytes.backup_to.remote.snapshot.cloned source · line 1282 · raw

@path:String -> @sessions:Pair(0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session, 0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session) -> @snapshot_ids:Pair(U32, Pair(U32, U32)) -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Unit>))

def Bytes.backup_to.remote.snapshot.opened source · line 1298 · raw

@path:String -> @opened:Pair(0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session, Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Error, U32>) -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Unit>))

def Bytes.backup_to.remote source · line 1311 · raw

@path:String -> @session:0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Unit>))

def Bytes.backup_to source · line 1322 · raw

@path:String -> @handle:Bytes.Handle -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Unit>))

Publishes one consistent byte snapshot as a checksummed backup bundle.

def Bytes.restore.error source · line 1332 · raw

@error:0x7586b743ff7fd05e412d5115859629b6/src/transfer/RestoreIo.Error -> Bytes.Error

def Bytes.restore.result source · line 1346 · raw

@restored:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/transfer/RestoreIo.Error, Unit> -> IO(Result<&1, &1, Bytes.Error, Unit>)

def Bytes.restore source · line 1356 · raw

@destination:String -> @input:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> IO(Result<&1, &1, Bytes.Error, Unit>)

Validates a complete exchange before building and atomically publishing a database.

def Bytes.restore_from.result source · line 1366 · raw

@restored:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/transfer/RestoreIo.Error, Unit> -> IO(Result<&1, &1, Bytes.Error, Unit>)

def Bytes.restore_from source · line 1372 · raw

@destination:String -> @bundle:String -> IO(Result<&1, &1, Bytes.Error, Unit>)

Restores a published backup bundle containing its BACKUP exchange file.

def Bytes.snapshot.live_scan source · line 1384 · raw

@handle:Bytes.Handle -> @bounds:Bytes.ScanBounds -> Pair(Bytes.Handle, Bytes.Cursor)

Creates a stable ordered scan snapshot from the current visible byte keys.

def Bytes.snapshot.live_scan_range source · line 1391 · raw

@handle:Bytes.Handle -> @lower:Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> @upper:Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> Pair(Bytes.Handle, Bytes.Cursor)

def Bytes.scan_open.result source · line 1398 · raw

@pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Handle, Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Error, 0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleCursor.Cursor>) -> Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Bytes.Cursor>)

def Bytes.scan_open.owned.failed source · line 1407 · raw

@handle:Bytes.Handle -> @snapshot:Bytes.Snapshot -> @error:Bytes.Error -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Bytes.Cursor>))

def Bytes.scan_open.owned.cursor source · line 1416 · raw

@handle:Bytes.Handle -> @bounds:0x7586b743ff7fd05e412d5115859629b6/src/scan/RangeCursor.Bounds -> @opened:Pair(Bytes.Snapshot, Result<&1, &1, Bytes.Error, Bytes.Cursor>) -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Bytes.Cursor>))

def Bytes.scan_open.owned.bounds source · line 1428 · raw

@handle:Bytes.Handle -> @snapshot:Bytes.Snapshot -> @copies:Pair(0x7586b743ff7fd05e412d5115859629b6/src/scan/RangeCursor.Bounds, 0x7586b743ff7fd05e412d5115859629b6/src/scan/RangeCursor.Bounds) -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Bytes.Cursor>))

def Bytes.scan_open.owned.snapshot source · line 1445 · raw

@opened:Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Bytes.Snapshot>) -> @bounds:Bytes.ScanBounds -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Bytes.Cursor>))

def Bytes.scan_open source · line 1459 · raw

@handle:Bytes.Handle -> @bounds:Bytes.ScanBounds -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Bytes.Cursor>))

def Bytes.scan source · line 1479 · raw

@handle:Bytes.Handle -> @bounds:Bytes.ScanBounds -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Bytes.Cursor>))

def Bytes.scan_range source · line 1485 · raw

@handle:Bytes.Handle -> @lower:Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> @upper:Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Bytes.Cursor>))

def Bytes.scan_prefix source · line 1492 · raw

@handle:Bytes.Handle -> @prefix:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> IO(Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Bytes.Cursor>))

def Bytes.stream.step.result source · line 1498 · raw

@step:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleCursor.Step -> Bytes.StreamStep

def Bytes.snapshot.stream.step source · line 1512 · raw

@step:Bytes.ScanStep -> Bytes.StreamStep

def Bytes.owner.cursor.frame source · line 1519 · raw

@+snapshot_id:U32 -> @+cursor_id:U32 -> @pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session, Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Error, 0x7586b743ff7fd05e412d5115859629b6/src/coordinator/CursorCodec.Frame>) -> Bytes.StreamStep

def Bytes.scan_next.remote source · line 1533 · raw

@session:0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session -> @+snapshot_id:U32 -> @+cursor_id:U32 -> IO(Bytes.StreamStep)

def Bytes.scan_next_io.stream source · line 1544 · raw

@cursor:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleCursor.Cursor -> IO(Bytes.StreamStep)

def Bytes.scan_close_io.result source · line 1549 · raw

@result:Result<&1, &1, Pair(U32, String), Unit> -> Result<&1, &1, Bytes.Error, Unit>

def Bytes.scan_close_io.stream source · line 1556 · raw

@inner:0x7586b743ff7fd05e412d5115859629b6/src/scan/VisibleCursor.Cursor -> IO(Result<&1, &1, Bytes.Error, Unit>)

def Bytes.scan_close source · line 1563 · raw

@cursor:Bytes.Cursor -> IO(Result<&1, &1, Bytes.Error, Unit>)

def Bytes.scan_close_io source · line 1584 · raw

@cursor:Bytes.Cursor -> IO(Result<&1, &1, Bytes.Error, Unit>)

def Bytes.scan_next.result source · line 1588 · raw

@result:0x7586b743ff7fd05e412d5115859629b6/src/scan/RangeCursor.Step -> Bytes.ScanStep

Advances a byte scan by one matching item, filtered skip, or end marker.

def Bytes.scan_next.cloned source · line 1599 · raw

@inner:0x7586b743ff7fd05e412d5115859629b6/src/scan/RangeCursor.Cursor -> @pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/scan/RangeCursor.Bounds, 0x7586b743ff7fd05e412d5115859629b6/src/scan/RangeCursor.Bounds) -> Bytes.ScanStep

def Bytes.snapshot.scan_next source · line 1607 · raw

@cursor:Bytes.Cursor -> Bytes.ScanStep

def Bytes.snapshot.scan_seek source · line 1618 · raw

@cursor:Bytes.Cursor -> @lower:Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> Bytes.Cursor

Advances a live byte cursor to a later inclusive lower bound.

def Bytes.snapshot.scan_close source · line 1629 · raw

@cursor:Bytes.Cursor -> Bytes.Cursor

Releases a scan cursor and its retained bounds explicitly.

def Bytes.scan_next_io.snapshot source · line 1636 · raw

@inner:0x7586b743ff7fd05e412d5115859629b6/src/scan/RangeCursor.Cursor -> @bounds:0x7586b743ff7fd05e412d5115859629b6/src/scan/RangeCursor.Bounds -> IO(Bytes.StreamStep)

def Bytes.scan_next.owned.item source · line 1643 · raw

@snapshot:Bytes.Snapshot -> @inner:Bytes.Cursor -> @key:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @value:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @bounds:0x7586b743ff7fd05e412d5115859629b6/src/scan/RangeCursor.Bounds -> @matches:Bool -> Bytes.StreamStep

def Bytes.scan_next.owned.checked source · line 1655 · raw

@snapshot:Bytes.Snapshot -> @inner:Bytes.Cursor -> @keys:Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, Pair(0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes)) -> @value:0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes -> @copies:Pair(0x7586b743ff7fd05e412d5115859629b6/src/scan/RangeCursor.Bounds, 0x7586b743ff7fd05e412d5115859629b6/src/scan/RangeCursor.Bounds) -> Bytes.StreamStep

def Bytes.scan_next.owned.ended source · line 1669 · raw

@result:Result<&1, &1, Bytes.Error, Unit> -> Bytes.StreamStep

def Bytes.scan_next.owned source · line 1676 · raw

@snapshot:Bytes.Snapshot -> @bounds:0x7586b743ff7fd05e412d5115859629b6/src/scan/RangeCursor.Bounds -> @step:Bytes.StreamStep -> IO(Bytes.StreamStep)

def Bytes.scan_next source · line 1696 · raw

@cursor:Bytes.Cursor -> IO(Bytes.StreamStep)

def Bytes.scan_next_io source · line 1713 · raw

@cursor:Bytes.Cursor -> IO(Bytes.StreamStep)

def Bytes.scan_seek.remote source · line 1717 · raw

@+snapshot_id:U32 -> @+cursor_id:U32 -> @pair:Pair(0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session, Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Error, Unit>) -> Pair(Bytes.Cursor, Result<&1, &1, Bytes.Error, Unit>)

def Bytes.scan_seek.ids source · line 1729 · raw

@session:0x7586b743ff7fd05e412d5115859629b6/src/coordinator/Client.Session -> @snapshot_id:U32 -> @ids:Pair(U32, U32) -> @lower:Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> IO(Pair(Bytes.Cursor, Result<&1, &1, Bytes.Error, Unit>))

def Bytes.scan_seek.owned source · line 1742 · raw

@snapshot:Bytes.Snapshot -> @bounds:0x7586b743ff7fd05e412d5115859629b6/src/scan/RangeCursor.Bounds -> @pair:Pair(Bytes.Cursor, Result<&1, &1, Bytes.Error, Unit>) -> Pair(Bytes.Cursor, Result<&1, &1, Bytes.Error, Unit>)

def Bytes.scan_seek source · line 1751 · raw

@cursor:Bytes.Cursor -> @lower:Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> IO(Pair(Bytes.Cursor, Result<&1, &1, Bytes.Error, Unit>))

def Bytes.close.result source · line 1778 · raw

@result:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/ByteDurableDb.Error, Unit> -> Result<&1, &1, Bytes.Error, Unit>

def Bytes.close source · line 1781 · raw

@handle:Bytes.Handle -> IO(Result<&1, &1, Bytes.Error, Unit>)

def Utf8.error.from.failure source · line 1796 · raw

@failure:0x7586b743ff7fd05e412d5115859629b6/src/scan/Utf8CursorPolicy.Failure -> Utf8.Error

def public_manifest_status source · line 1839 · raw

@status:0x7586b743ff7fd05e412d5115859629b6/src/transfer/FormatInspect.Integrity -> ManifestStatus

Converts the internal manifest validation result to the public status.

def public_manifest_inspection source · line 1851 · raw

@inspection:0x7586b743ff7fd05e412d5115859629b6/src/transfer/FormatInspect.Inspection -> ManifestInspection

Converts the internal format identity and validation into the public record.

def public_inspection_lock_error source · line 1862 · raw

@error:0x7586b743ff7fd05e412d5115859629b6/src/DurableError.Error -> InspectionError

Maps database lock failures to inspection-specific public errors.

def public_inspection_result source · line 1871 · raw

@result:Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/transfer/FormatInspectIo.Error, 0x7586b743ff7fd05e412d5115859629b6/src/transfer/FormatInspect.Inspection> -> Result<&1, &1, InspectionError, ManifestInspection>

Preserves inspection IO and lock errors while mapping valid inspection data.

def inspect source · line 1884 · raw

@+dir:String -> IO(Result<&1, &1, InspectionError, ManifestInspection>)

Reads format identity and integrity under the existing database lock.

def migrate_legacy source · line 1894 · raw

@source:String -> @destination:String -> IO(Result<&1, &1, 0x7586b743ff7fd05e412d5115859629b6/src/transfer/MigrateRunIo.Error, Unit>)

Converts a verified 0.5.0.0 database into a new generation-four destination.

def Utf8.encode.result source · line 1900 · raw

@result:Result<&1, &1, Pair(U32, String), 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> Result<&1, &1, Utf8.Error, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>

def Utf8.encode source · line 1907 · raw

@+text:String -> Result<&1, &1, Utf8.Error, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>

def Utf8.set_mutation_result source · line 1910 · raw

@key:Result<&1, &1, Utf8.Error, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> @value:Maybe<&1, Result<&1, &1, Utf8.Error, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>> -> Result<&1, &1, Utf8.Error, Bytes.Mutation>

def Utf8.delete_mutation_result source · line 1924 · raw

@key:Result<&1, &1, Utf8.Error, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> @value:Maybe<&1, Result<&1, &1, Utf8.Error, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>> -> Result<&1, &1, Utf8.Error, Bytes.Mutation>

def Utf8.set_mutations_result source · line 1938 · raw

@head:Result<&1, &1, Utf8.Error, Bytes.Mutation> -> @tail:Result<&1, &1, Utf8.Error, List<&1, Bytes.Mutation>> -> Result<&1, &1, Utf8.Error, List<&1, Bytes.Mutation>>

def Utf8.delete_mutations_result source · line 1950 · raw

@head:Result<&1, &1, Utf8.Error, Bytes.Mutation> -> @tail:Result<&1, &1, Utf8.Error, List<&1, Bytes.Mutation>> -> Result<&1, &1, Utf8.Error, List<&1, Bytes.Mutation>>

def Utf8.encode_set_mutation source · line 1956 · raw

@+key:String -> @+value:String -> @tail:Result<&1, &1, Utf8.Error, List<&1, Bytes.Mutation>> -> Result<&1, &1, Utf8.Error, List<&1, Bytes.Mutation>>

def Utf8.encode_delete_mutation source · line 1964 · raw

@+key:String -> @tail:Result<&1, &1, Utf8.Error, List<&1, Bytes.Mutation>> -> Result<&1, &1, Utf8.Error, List<&1, Bytes.Mutation>>

def Utf8.mutations source · line 1971 · raw

@mutations:List<&1, Utf8.Mutation> -> Result<&1, &1, Utf8.Error, List<&1, Bytes.Mutation>>

def Utf8.open.result source · line 1983 · raw

@result:Result<&1, &1, Bytes.Error, Bytes.Handle> -> Result<&1, &1, Utf8.Error, Utf8.Handle>

def Utf8.create source · line 1990 · raw

@+path:String -> IO(Result<&1, &1, Utf8.Error, Utf8.Handle>)

def Utf8.create_with_options source · line 1995 · raw

@+path:String -> @options:0x7586b743ff7fd05e412d5115859629b6/src/ResourceOptions.Options -> IO(Result<&1, &1, Utf8.Error, Utf8.Handle>)

def Utf8.open_existing source · line 2004 · raw

@+path:String -> IO(Result<&1, &1, Utf8.Error, Utf8.Handle>)

def Utf8.open_existing_with_options source · line 2009 · raw

@+path:String -> @options:0x7586b743ff7fd05e412d5115859629b6/src/ResourceOptions.Options -> IO(Result<&1, &1, Utf8.Error, Utf8.Handle>)

def Utf8.open_existing_wait source · line 2018 · raw

@+path:String -> @timeout_ms:U32 -> @backoff_ms:U32 -> IO(Result<&1, &1, Utf8.Error, Utf8.Handle>)

def Utf8.get.decode.result source · line 2027 · raw

@handle:Bytes.Handle -> @result:Result<&1, &1, Pair(U32, String), String> -> Pair(Utf8.Handle, Result<&1, &1, Utf8.Error, Maybe<&2, String>>)

def Utf8.get.result source · line 2035 · raw

@pair:Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>) -> Pair(Utf8.Handle, Result<&1, &1, Utf8.Error, Maybe<&2, String>>)

def Utf8.get.encoded source · line 2046 · raw

@inner:Bytes.Handle -> @encoded:Result<&1, &1, Utf8.Error, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> IO(Pair(Utf8.Handle, Result<&1, &1, Utf8.Error, Maybe<&2, String>>))

def Utf8.get source · line 2059 · raw

@handle:Utf8.Handle -> @+key:String -> IO(Pair(Utf8.Handle, Result<&1, &1, Utf8.Error, Maybe<&2, String>>))

def Utf8.write.result source · line 2067 · raw

@pair:Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Unit>) -> Pair(Utf8.Handle, Result<&1, &1, Utf8.Error, Unit>)

def Utf8.write.encoded source · line 2074 · raw

@inner:Bytes.Handle -> @encoded:Result<&1, &1, Utf8.Error, List<&1, Bytes.Mutation>> -> IO(Pair(Utf8.Handle, Result<&1, &1, Utf8.Error, Unit>))

def Utf8.write_batch source · line 2087 · raw

@handle:Utf8.Handle -> @mutations:List<&1, Utf8.Mutation> -> IO(Pair(Utf8.Handle, Result<&1, &1, Utf8.Error, Unit>))

def Utf8.put source · line 2095 · raw

@handle:Utf8.Handle -> @+key:String -> @+value:String -> IO(Pair(Utf8.Handle, Result<&1, &1, Utf8.Error, Unit>))

def Utf8.delete source · line 2102 · raw

@handle:Utf8.Handle -> @+key:String -> IO(Pair(Utf8.Handle, Result<&1, &1, Utf8.Error, Unit>))

def Utf8.unit.result source · line 2108 · raw

@pair:Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Unit>) -> Pair(Utf8.Handle, Result<&1, &1, Utf8.Error, Unit>)

def Utf8.flush source · line 2115 · raw

@handle:Utf8.Handle -> IO(Pair(Utf8.Handle, Result<&1, &1, Utf8.Error, Unit>))

def Utf8.compact source · line 2122 · raw

@handle:Utf8.Handle -> IO(Pair(Utf8.Handle, Result<&1, &1, Utf8.Error, Unit>))

def Utf8.scan.bound.encoded source · line 2129 · raw

@result:Result<&1, &1, Utf8.Error, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> Result<&1, &1, Utf8.Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>

def Utf8.scan.bound source · line 2136 · raw

@bound:Maybe<&2, String> -> Result<&1, &1, Utf8.Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>

def Utf8.scan_seek.byte.result source · line 2144 · raw

@pair:Pair(Bytes.Cursor, Result<&1, &1, Bytes.Error, Unit>) -> Pair(Bytes.Cursor, Result<&1, &1, Utf8.Error, Unit>)

def Utf8.scan_seek.active source · line 2152 · raw

@inner:Bytes.Cursor -> @result:Result<&1, &1, Utf8.Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>> -> IO(Pair(Bytes.Cursor, Result<&1, &1, Utf8.Error, Unit>))

Applies an already validated text seek bound to an active byte cursor.

def Utf8.scan_seek.failed source · line 2166 · raw

@byte_cursor:Bytes.Cursor -> @error:Utf8.Error -> Pair(Utf8.Cursor, Result<&1, &1, Utf8.Error, Unit>)

def Utf8.scan_seek.result source · line 2180 · raw

@pair:Pair(Bytes.Cursor, Result<&1, &1, Utf8.Error, Unit>) -> Pair(Utf8.Cursor, Result<&1, &1, Utf8.Error, Unit>)

def Utf8.scan_seek source · line 2190 · raw

@cursor:Utf8.Cursor -> @lower:Maybe<&2, String> -> IO(Pair(Utf8.Cursor, Result<&1, &1, Utf8.Error, Unit>))

Seeks an active text cursor by UTF-8 key, preserving terminal cursors.

def Utf8.scan.range.opened source · line 2204 · raw

@pair:Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Bytes.Cursor>) -> Pair(Utf8.Handle, Result<&1, &1, Utf8.Error, Utf8.Cursor>)

def Utf8.scan.range.result source · line 2213 · raw

@handle:Bytes.Handle -> @lower:Result<&1, &1, Utf8.Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>> -> @upper:Result<&1, &1, Utf8.Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>> -> IO(Pair(Utf8.Handle, Result<&1, &1, Utf8.Error, Utf8.Cursor>))

def Utf8.scan_range source · line 2231 · raw

@handle:Utf8.Handle -> @lower:Maybe<&2, String> -> @upper:Maybe<&2, String> -> IO(Pair(Utf8.Handle, Result<&1, &1, Utf8.Error, Utf8.Cursor>))

def Utf8.scan.prefix.opened source · line 2241 · raw

@pair:Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Bytes.Cursor>) -> Pair(Utf8.Handle, Result<&1, &1, Utf8.Error, Utf8.Cursor>)

def Utf8.scan.prefix.encoded source · line 2246 · raw

@handle:Bytes.Handle -> @encoded:Result<&1, &1, Utf8.Error, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> IO(Pair(Utf8.Handle, Result<&1, &1, Utf8.Error, Utf8.Cursor>))

def Utf8.scan_prefix source · line 2260 · raw

@handle:Utf8.Handle -> @+prefix:String -> IO(Pair(Utf8.Handle, Result<&1, &1, Utf8.Error, Utf8.Cursor>))

def Utf8.scan.item.failed source · line 2268 · raw

@cursor:Bytes.Cursor -> @error:Utf8.Error -> @failure:0x7586b743ff7fd05e412d5115859629b6/src/scan/Utf8CursorPolicy.Failure -> Utf8.ScanStep

def Utf8.scan.item.result source · line 2275 · raw

@cursor:Bytes.Cursor -> @key:Result<&1, &1, Pair(U32, String), String> -> @value:Result<&1, &1, Pair(U32, String), String> -> Utf8.ScanStep

def Utf8.scan.byte.step source · line 2288 · raw

@step:Bytes.StreamStep -> Utf8.ScanStep

def Utf8.scan_next.failed.ready source · line 2300 · raw

@inner:Bytes.Cursor -> @failures:Pair(0x7586b743ff7fd05e412d5115859629b6/src/scan/Utf8CursorPolicy.Failure, 0x7586b743ff7fd05e412d5115859629b6/src/scan/Utf8CursorPolicy.Failure) -> IO(Utf8.ScanStep)

def Utf8.scan_next source · line 2309 · raw

@cursor:Utf8.Cursor -> IO(Utf8.ScanStep)

def Utf8.scan_close.result source · line 2322 · raw

@result:Result<&1, &1, Bytes.Error, Unit> -> Pair(Utf8.Cursor, Result<&1, &1, Utf8.Error, Unit>)

def Utf8.scan_close source · line 2331 · raw

@cursor:Utf8.Cursor -> IO(Pair(Utf8.Cursor, Result<&1, &1, Utf8.Error, Unit>))

def Utf8.stats.result source · line 2338 · raw

@pair:Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Bytes.Stats>) -> Pair(Utf8.Handle, Result<&1, &1, Utf8.Error, Utf8.Stats>)

def Utf8.stats source · line 2347 · raw

@handle:Utf8.Handle -> IO(Pair(Utf8.Handle, Result<&1, &1, Utf8.Error, Utf8.Stats>))

def Utf8.close.result source · line 2355 · raw

@result:Result<&1, &1, Bytes.Error, Unit> -> Result<&1, &1, Utf8.Error, Unit>

def Utf8.close source · line 2362 · raw

@handle:Utf8.Handle -> IO(Result<&1, &1, Utf8.Error, Unit>)

def Utf8.snapshot.created source · line 2369 · raw

@pair:Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Bytes.Snapshot>) -> Pair(Utf8.Handle, Result<&1, &1, Utf8.Error, Utf8.Snapshot>)

def Utf8.snapshot source · line 2378 · raw

@handle:Utf8.Handle -> IO(Pair(Utf8.Handle, Result<&1, &1, Utf8.Error, Utf8.Snapshot>))

def Utf8.snapshot.get.decoded source · line 2386 · raw

@snapshot:Bytes.Snapshot -> @result:Result<&1, &1, Pair(U32, String), String> -> Pair(Utf8.Snapshot, Result<&1, &1, Utf8.Error, Maybe<&1, String>>)

def Utf8.snapshot.get.result source · line 2394 · raw

@pair:Pair(Bytes.Snapshot, Result<&1, &1, Bytes.Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>>) -> Pair(Utf8.Snapshot, Result<&1, &1, Utf8.Error, Maybe<&1, String>>)

def Utf8.snapshot.get.encoded source · line 2403 · raw

@snapshot:Bytes.Snapshot -> @encoded:Result<&1, &1, Utf8.Error, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> IO(Pair(Utf8.Snapshot, Result<&1, &1, Utf8.Error, Maybe<&1, String>>))

def Utf8.snapshot.get source · line 2418 · raw

@snapshot:Utf8.Snapshot -> @+key:String -> IO(Pair(Utf8.Snapshot, Result<&1, &1, Utf8.Error, Maybe<&1, String>>))

def Utf8.snapshot.range.opened source · line 2426 · raw

@pair:Pair(Bytes.Snapshot, Result<&1, &1, Bytes.Error, Bytes.Cursor>) -> Pair(Utf8.Snapshot, Result<&1, &1, Utf8.Error, Utf8.Cursor>)

def Utf8.snapshot.range.result source · line 2434 · raw

@snapshot:Bytes.Snapshot -> @lower:Result<&1, &1, Utf8.Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>> -> @upper:Result<&1, &1, Utf8.Error, Maybe<&1, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes>> -> IO(Pair(Utf8.Snapshot, Result<&1, &1, Utf8.Error, Utf8.Cursor>))

def Utf8.snapshot.scan_range source · line 2452 · raw

@snapshot:Utf8.Snapshot -> @lower:Maybe<&2, String> -> @upper:Maybe<&2, String> -> IO(Pair(Utf8.Snapshot, Result<&1, &1, Utf8.Error, Utf8.Cursor>))

def Utf8.snapshot.prefix.opened source · line 2461 · raw

@pair:Pair(Bytes.Snapshot, Result<&1, &1, Bytes.Error, Bytes.Cursor>) -> Pair(Utf8.Snapshot, Result<&1, &1, Utf8.Error, Utf8.Cursor>)

def Utf8.snapshot.scan_prefix.encoded source · line 2466 · raw

@snapshot:Bytes.Snapshot -> @encoded:Result<&1, &1, Utf8.Error, 0x185ae03c75e3e75be1171471f68b43cb/bytes.Bytes> -> IO(Pair(Utf8.Snapshot, Result<&1, &1, Utf8.Error, Utf8.Cursor>))

def Utf8.snapshot.scan_prefix source · line 2480 · raw

@snapshot:Utf8.Snapshot -> @+prefix:String -> IO(Pair(Utf8.Snapshot, Result<&1, &1, Utf8.Error, Utf8.Cursor>))

def Utf8.snapshot.close source · line 2488 · raw

@snapshot:Utf8.Snapshot -> IO(Result<&1, &1, Utf8.Error, Unit>)

def Utf8.backup.started source · line 2496 · raw

@pair:Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Bytes.BackupStream>) -> Pair(Utf8.Handle, Result<&1, &1, Utf8.Error, Utf8.BackupStream>)

Opens the same logical byte backup through the text facade.

def Utf8.backup source · line 2504 · raw

@handle:Utf8.Handle -> IO(Pair(Utf8.Handle, Result<&1, &1, Utf8.Error, Utf8.BackupStream>))

def Utf8.backup.next.result source · line 2512 · raw

@result:Result<&1, &1, Bytes.Error, Bytes.BackupStep> -> Result<&1, &1, Utf8.Error, Utf8.BackupStep>

def Utf8.backup_next source · line 2522 · raw

@stream:Utf8.BackupStream -> Result<&1, &1, Utf8.Error, Utf8.BackupStep>

Emits raw backup chunks without attempting text decoding.

def Utf8.backup_to.started source · line 2527 · raw

@pair:Pair(Bytes.Handle, Result<&1, &1, Bytes.Error, Unit>) -> Pair(Utf8.Handle, Result<&1, &1, Utf8.Error, Unit>)

def Utf8.backup_to source · line 2535 · raw

@path:String -> @handle:Utf8.Handle -> IO(Pair(Utf8.Handle, Result<&1, &1, Utf8.Error, Unit>))