Skip to main content

Crate sqlite_types

Crate sqlite_types 

Source
Expand description

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

Structs§

ExecResult
ExecuteResult
PageBytes
Shared immutable bytes for one SQLite page version.
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
Actor-side ceiling: 128 MiB of 4 KiB pages. The server additionally enforces its configured filesystem transaction byte cap before admitting each segment. Large commits stream as bounded segments and publish at one commit sequence.
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.
TRANSACTION_TOO_LARGE_CODE
TRANSACTION_TOO_LARGE_GROUP
The error a remote SQLite request reports when its transaction changed more pages than one commit may carry.

Functions§

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