Driver interface that all drivers implement.

Type Parameters

  • T

Hierarchy

  • Driver

Properties

Properties

close: (() => Promise<void>)

Type declaration

    • (): Promise<void>
    • Clean up and close driver

      Returns Promise<void>

load: (() => Promise<undefined | T>)

Type declaration

    • (): Promise<undefined | T>
    • Loads data from the driver's backend

      Returns Promise<undefined | T>

open: (() => Promise<void>)

Type declaration

    • (): Promise<void>
    • Open driver

      Returns Promise<void>

reset: (() => Promise<void>)

Type declaration

    • (): Promise<void>
    • Clean all the data in the driver's backend

      Returns Promise<void>

save: ((data) => Promise<void>)

Type declaration

    • (data): Promise<void>
    • Persist data to the driver's backend

      Parameters

      • data: T

      Returns Promise<void>

Generated using TypeDoc