OfficialFileStorage class final

Read-only open of an official SQLite file.

A shared lock is held until close. A pending WAL or a hot journal is recovered in memory and the file bytes are left unchanged. A rollback file with no sidecar is streamed. Failed opens close the file.

Implemented types

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → Future<void>
override
length() → Future<int>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(int offset, Uint8List buffer) → Future<int>
override
sync() → Future<void>
override
toString() → String
A string representation of this object.
inherited
truncate(int size) → Future<void>
override
write(int offset, Uint8List bytes) → Future<void>
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

open(String path, {int maxImageBytes = 64 * 1024 * 1024}) → Future<OfficialFileStorage>