moonlink.js / Exports / MoonlinkDatabase

Class: MoonlinkDatabase

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new MoonlinkDatabase(clientId): MoonlinkDatabase

Parameters

NameType
clientIdstring

Returns

MoonlinkDatabase

Defined in

src/@Utils/MoonlinkDatabase.ts:10

Properties

data

Private data: Data = {}

Defined in

src/@Utils/MoonlinkDatabase.ts:7


id

Private id: string

Defined in

src/@Utils/MoonlinkDatabase.ts:8

Methods

delete

delete(key): boolean

Parameters

NameType
keystring

Returns

boolean

Defined in

src/@Utils/MoonlinkDatabase.ts:45


fetch

fetch(): void

Returns

void

Defined in

src/@Utils/MoonlinkDatabase.ts:95


get

get<T>(key): T

Type parameters

Name
T

Parameters

NameType
keystring

Returns

T

Defined in

src/@Utils/MoonlinkDatabase.ts:25


getFilePath

getFilePath(): string

Returns

string

Defined in

src/@Utils/MoonlinkDatabase.ts:87


push

push<T>(key, value): void

Type parameters

Name
T

Parameters

NameType
keystring
valueT

Returns

void

Defined in

src/@Utils/MoonlinkDatabase.ts:31


save

save(): void

Returns

void

Defined in

src/@Utils/MoonlinkDatabase.ts:115


set

set<T>(key, value): void

Type parameters

Name
T

Parameters

NameType
keystring
valueT

Returns

void

Defined in

src/@Utils/MoonlinkDatabase.ts:15


updateData

updateData(data, keys, value): void

Parameters

NameType
dataData
keysstring
valueany

Returns

void

Defined in

src/@Utils/MoonlinkDatabase.ts:72