VirtualFileSystem class abstract base

A virtual filesystem used by sqlite3 to access the current I/O environment.

Instead of having an integer return code, file system implementations should throw a VfsException to signal invalid operations. For details on the individual methods, consult the sqlite3.h header file and its documentation.

For a file system implementation that implements a few methods already, consider extending BaseVirtualFileSystem.

Constructors

VirtualFileSystem(String name)

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
The name of this virtual file system.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
xAccess(String path, int flags) int
Check whether a file can be accessed.
xCurrentTime() DateTime
Returns the current time.
xDelete(String path, int syncDir) → void
Delete a file.
xFullPathName(String path) String
Resolves a path name supplied by the user into a path that can be used by the other methods of this VFS.
xOpen(Sqlite3Filename path, int flags) XOpenResult
Opens a file, returning supported flags and a file instance.
xRandomness(Uint8List target) → void
Fill the target with random bytes.
xSleep(Duration duration) → void
Sleeps for the passed duration.

Operators

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