A Sylvie persistence adapter which persists using node fs module

Hierarchy

  • FsAdapter

Implements

Constructors

Properties

fs?: __module
mode: "normal"

Methods

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

    Memberof

    LokiFsAdapter

    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

          • serialized: string | Error

          Returns void

    Returns void

Generated using TypeDoc