A Sylvie persistence adapter which persists using browser OPFS

Hierarchy

  • OPFSAdapter

Implements

Constructors

Properties

fs: FileSystemDirectoryHandle
isAsync: true
mode: "normal"
options: Partial<OPFSAdapterOptions>

Methods

  • loadDatabase() - Load data from OPFS file, will throw an error if the file does not exist

    Parameters

    • dbname: string

      the filename of the database to load

    • callback: ((serialized?: string | Error) => void)

      the callback to handle the result

        • (serialized?: string | Error): void
        • Parameters

          • Optional serialized: string | Error

          Returns void

    Returns void

Generated using TypeDoc