Skip to main content

Crate depot_client_types

Crate depot_client_types 

Source
Expand description

Shared SQLite execution types for local and remote depot client backends.

Structs§

ExecResult
ExecuteResult
QueryResult

Enums§

BindParam
ColumnValue

Constants§

COMMIT_SEGMENT_MAX_SHARDS
Shards one staged commit segment may span.
HEAD_FENCE_MISMATCH_CODE
HEAD_FENCE_MISMATCH_GROUP
MAX_COMMIT_DIRTY_PAGES
Dirty pages one commit may carry, staged or not.
SHARD_SIZE
Pages per storage shard. Shared rather than each side keeping its own copy: the client cuts staged commit segments on these boundaries and the engine rejects segments that are not cut on them, so two definitions could disagree and make every large commit fail.

Functions§

cut_page_segments
Cuts pages into shard-aligned segments, each spanning at most COMMIT_SEGMENT_MAX_SHARDS.
is_head_fence_mismatch
segment_start_for_page
Where a staged commit segment carrying pgno must start.