Skip to main content

foundation-utils.inmemorydatabase

Home > @genesislcap/foundation-utils > InMemoryDatabase

InMemoryDatabase class

An in memory database of specific DatabaseRecord types.

Signature:

export declare class InMemoryDatabase<T extends DatabaseRecord> implements Database<T> 

Implements: Database<T>

Constructors

Constructor

Modifiers

Description

(constructor)(uuid)

Constructs a new instance of the InMemoryDatabase class

Properties

Property

Modifiers

Type

Description

isWorking

boolean

Methods

Method

Modifiers

Description

create(newValue)

delete(id)

onAfterUpdate(listener)

onBeforeUpdate(listener)

read(id)

update(id, newValue)

visit(visitor)