Loki structured (node) filesystem adapter class. This class fulfills the loki 'reference' abstract adapter interface which can be applied to other storage methods.

Hierarchy

  • FsStructuredAdapter

Implements

Constructors

Properties

dbref?: default
mode: "reference"

Methods

  • Generator for constructing lines for file streaming output of db container or collection.

    Returns

    A custom, restructured aggregation of independent serializations.

    Memberof

    LokiFsStructuredAdapter

    Parameters

    • options: any

      output format options for use externally to loki

    Returns Generator<any, void, unknown>

  • Recursive function to chain loading of each collection one at a time. If at some point i can determine how to make async driven generator, this may be converted to generator.

    Memberof

    LokiFsStructuredAdapter

    Parameters

    • dbname: any

      the name to give the serialized database within the catalog.

    • collectionIndex: any

      the ordinal position of the collection to load.

    • callback: any

      callback to pass to next invocation or to call when done

    Returns void

  • Utility method for queueing one save at a time

    Parameters

    • dbname: any
    • pi: any
    • callback: (() => void)
        • (): void
        • Returns void

    Returns void

  • Loki persistence adapter interface function which outputs un-prototype db object reference to load from.

    Memberof

    LokiFsStructuredAdapter

    Parameters

    • dbname: string

      the name of the database to retrieve.

    • callback: ((value: string | default | Error) => void)

      callback should accept string param containing db object reference.

        • (value: string | default | Error): void
        • Parameters

          Returns void

    Returns void

Generated using TypeDoc