Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • DataBase

Index

Constructors

constructor

Properties

Private data

Private dirty

dirty: boolean = false

Private filepath

filepath: string

Private fs

Static Private instance

instance: DataBase

Methods

clear

  • clear(doc: undefined | string): void

query

  • query<T>(doc: string, prop: string, defaultValue: T): any
  • Type parameters

    • T

    Parameters

    • doc: string
    • prop: string
    • Optional defaultValue: T

    Returns any

Private readFromDisk

  • readFromDisk(): void

syncToDisk

  • syncToDisk(): boolean

write

  • write<T>(doc: string, prop: string, newValue: T): any
  • Type parameters

    • T

    Parameters

    • doc: string
    • prop: string
    • newValue: T

    Returns any

Generated using TypeDoc