Versions in this module Expand all Collapse all v0 v0.1.0 Jun 23, 2026 Changes in this version + const CodecLZ4 + const CodecNone + const CodecZstd + const CommonHeaderSize + const DefaultDBCount + const DefaultPageSize + const EncryptionAESGCM + const EncryptionNone + const FileFlagCompressedDefault + const FileFlagEncrypted + const FileFlagInMemory + const FileFlagWALMode + const FormatVersion + const HeaderSize + const LeafHeaderSize + const MaxDBCount + const MaxPageSize + const MetaHeaderSize + const MetaPageA + const MetaPageB + const MinPageSize + const NullPage + const PageTypeBTreeInt + const PageTypeBTreeLeaf + const PageTypeCatalog + const PageTypeFLLeaf + const PageTypeFLTrunk + const PageTypeFree + const PageTypeHLLBlob + const PageTypeHeader + const PageTypeMeta + const PageTypeOverflow + const PageTypeStreamSeg + const PageTypeVExtent + const PageTypeWALIdx + var ErrBadChecksum = errors.New("aki/format: checksum mismatch") + var ErrBadMagic = errors.New("aki/format: bad magic") + var ErrBadPageSize = errors.New("aki/format: invalid page size") + var ErrShortBuffer = errors.New("aki/format: buffer too small") + var ErrUnknownPageType = errors.New("aki/format: unknown page type") + var Magic = [16]byte + func ValidPageSize(n uint32) bool + type FileHeader struct + AutovacuumMode uint32 + CatalogRoot uint32 + ChangeCounter uint64 + DBCount uint32 + DefaultCodec uint8 + EncryptionID uint8 + FileCreateTime uint64 + FileFlags uint32 + FormatVersion uint16 + FreelistCount uint32 + FreelistHead uint32 + HeaderChecksum uint32 + KDFParams uint32 + KDFSalt [16]byte + Magic [16]byte + MetaPageA uint32 + MetaPageB uint32 + MinReadVersion uint16 + MinWriteVersion uint16 + PageCount uint32 + PageSize uint32 + SchemaVersion uint32 + UserVersion uint32 + WALCheckpoint uint64 + func NewFileHeader(pageSize, dbCount uint32, createTimeUS uint64) FileHeader + func ParseFileHeader(b []byte) (FileHeader, error) + func (h FileHeader) MarshalTo(b []byte) error + type MetaPage struct + CatalogRoot uint32 + ChangeCounter uint64 + DBCount uint32 + DBRootPages [8]uint32 + FreelistCount uint32 + FreelistHead uint32 + Header PageHeader + MetaChecksum uint32 + MetaSeq uint64 + PageCount uint32 + SchemaVersion uint32 + SystemRoot uint32 + TxnID uint64 + WALCommitLSN uint64 + func LiveMeta(a, b MetaPage, aok, bok bool) (live MetaPage, ok bool) + func NewMetaPage(h FileHeader, metaSeq uint64) MetaPage + func ParseMetaPage(b []byte) (MetaPage, error) + func (m MetaPage) MarshalTo(b []byte, pageSize uint32) error + type PageHeader struct + CellCount uint16 + Flags uint8 + FreeEnd uint16 + FreeStart uint16 + PageLSN uint64 + Type uint8 + func ParsePageHeader(b []byte) (PageHeader, error) + func (h PageHeader) FreeSpace() int + func (h PageHeader) MarshalTo(b []byte) error