Skip to main content

foundation-utils.database

Home > @genesislcap/foundation-utils > Database

Database interface​

Represents a database with basic CRUD operations.

Signature:

export interface Database<T extends DatabaseRecord> 

Properties​

Property

Modifiers

Type

Description

isWorking

boolean

Methods​

Method

Description

create(newValue)

delete(id)

onAfterUpdate(listener)

onBeforeUpdate(listener)

read(id)

update(id, newValue)

visit(visitor)