@pgxsinkit/pgwasm
Version:
35 lines • 2.02 kB
TypeScript
/**
* The on-disk format identity. Bumped to 2 by the symlink entry kind: a format-1 reader meets an
* inode kind and a transaction record it cannot decode, and the recreate-only version policy
* (ADR-0048 §3) is the store's ONLY evolution mechanism — one build reads and writes exactly one
* version, and a store identifying another one is rejected with `StoreRecreationRequiredError`
* before any content mutation. There is no migration and never will be.
*/
export declare const FORMAT_VERSION = 2;
export declare const LIMITS_PROFILE_VERSION = 1;
export declare const ARENA_HEADER_BYTES = 8192;
export declare const MIN_EXTENT_BYTES = 8192;
export declare const MAX_EXTENT_BYTES: number;
export declare const DEFAULT_EXTENT_BYTES: number;
export declare const MAX_COMPONENT_BYTES = 255;
export declare const MAX_PATH_BYTES = 1024;
export declare const MAX_PATH_DEPTH = 32;
/** How many symbolic links one path resolution may traverse before it reports `ELOOP`. */
export declare const MAX_SYMLINK_HOPS = 32;
export declare const MAX_INODES = 65536;
export declare const MAX_EXTENTS_PER_INODE: number;
export declare const MAX_TOTAL_EXTENTS: number;
export declare const MAX_METADATA_BASE_READER_BYTES: number;
export declare const MAX_METADATA_BASE_WRITER_BYTES: number;
export declare const MAX_FRAME_PAYLOAD_BYTES: number;
export declare const MAX_ACTIVE_LOG_BYTES: number;
export declare const SOFT_ACTIVE_LOG_BYTES: number;
export declare const MAX_ACTIVE_LOG_FRAMES = 32768;
export declare const SOFT_ACTIVE_LOG_FRAMES = 16384;
export declare const MAX_U64: bigint;
export declare function validateExtentSize(value: number): number;
export declare function checkedU64(value: bigint, label: string): bigint;
export declare function checkedSafeNumber(value: bigint, label: string): number;
export declare function checkedAdd(left: bigint, right: bigint, label: string): bigint;
export declare function checkedMultiply(left: bigint, right: bigint, label: string): bigint;
//# sourceMappingURL=limits.d.ts.map