API reference › @evolu/sqlite-wasm › SqliteShortReadError

Defined in: packages/sqlite-wasm/src/Database.ts:615

A read that returned fewer bytes than the file holds at its offset, which a pool's xRead records as it returns SQLITE_IOERR_READ, and SahPool.read returns as the cause of a SqliteVfsIoError.

The File System Standard reports a failed read as a short count, not an exception, so only a read that the end of the file cuts returns SQLITE_IOERR_SHORT_READ, whose zeros SQLite takes for data.

Extends

  • Typed<"SqliteShortRead">

Properties

read

readonly read: number;

Defined in: packages/sqlite-wasm/src/Database.ts:618


requested

readonly requested: number;

Defined in: packages/sqlite-wasm/src/Database.ts:617

The bytes the file holds at the offset, at most the length requested.


type

readonly type: "SqliteShortRead";

Defined in: packages/common/dist/src/Type.d.ts:9507

Inherited from

Typed.type