Skip to main content

Crate litepages

Crate litepages 

Source
Expand description

§litetx (walrust fork)

Local fork of superfly/ltx-rs with litestream compatibility fixes.

§Changes from upstream

  • Added NO_CHECKSUM flag (0x02) support for reading litestream-produced LTX files
  • Updated header validation to skip checksum checks when NO_CHECKSUM is set

§Why fork?

Litestream uses HeaderFlagNoChecksum = 0x00000002 for files that don’t track checksums. The upstream litetx crate only recognizes COMPRESS_LZ4 = 0x01, causing decode failures.

This fork enables walrust to read litestream backups for migration purposes.

Structs§

Checksum
A database checksum.
Decoder
An LTX file decoder.
Encoder
An LTX file encoder.
Header
An LTX file header.
HeaderFlags
PageNum
A database page number.
PageSize
A database page size in bytes.
Pos
A position uniquely identifying a state of a database.
TXID
An ID of a database transaction.
Trailer
An LTX file trailer.

Enums§

DecodeError
An error that can be returned by Decoder.
EncodeError
An error that can be returned by Encoder.

Traits§

PageChecksum
A trait for page checksum calculation.