Wrapper and adapter for idb functionality. Manages settings to be persisted between sessions. This contains all setting keys and defaults and type resp. store information.

Constructors

Properties

db: any = null
dbName: string = "de.habelt-jena.KatexInputHelper"
ongoingPut: boolean = false
queue: any[] = []
schema: Schema = null

Methods

  • Enqueues a single property to the property queue.

    Parameters

    • store: string
    • prop: string
    • value: any

    Returns void

  • Enqueues a property to be written to a db store.

    Parameters

    • prop: string
    • value: any

    Returns void

  • Wrappper of the get db method.

    Parameters

    • store: string
    • key: string

    Returns Promise<any>

  • Gets a common setting. This is able to provide a default.

    Parameters

    • name: string
    • deflt: any

    Returns Promise<any>

  • Opens an instance of the idb database. This is able to perform upgrades, if the schema / version of the database has changed.

    Parameters

    • profile: string

    Returns Promise<any>

  • Wrappper of the put db method.

    Parameters

    • store: string
    • key: string
    • val: any

    Returns Promise<void>

  • Parameters

    • name: string
    • value: any

    Returns Promise<void>

  • Parameters

    • id: string
    • layout: any

    Returns Promise<void>

  • Puts a parameter into the db as opposed to enqueues.

    Parameters

    • key: string
    • val: any

    Returns Promise<void>

  • Upgrade of the database version.

    Parameters

    • db: any
    • oldVersion: any
    • newVersion: any
    • transaction: any
    • event: any

    Returns Promise<void>