Skip to main content

Interface: DB

Implemented by#

Methods#

add#

â–¸ add(key: string, url: string): Promise<boolean>

Parameters#

NameType
keystring
urlstring

Returns: Promise<boolean>

Defined in: db/db.ts:8


deleteKey#

â–¸ deleteKey(key: string): Promise<boolean>

Parameters#

NameType
keystring

Returns: Promise<boolean>

Defined in: db/db.ts:6


deleteUrl#

â–¸ deleteUrl(key: string, url: string): Promise<boolean>

Parameters#

NameType
keystring
urlstring

Returns: Promise<boolean>

Defined in: db/db.ts:7


get#

â–¸ get(key: string): Promise<Hook>

Parameters#

NameType
keystring

Returns: Promise<Hook>

Defined in: db/db.ts:4


getDB#

â–¸ getDB(): Promise<Hook[]>

Returns: Promise<Hook[]>

Defined in: db/db.ts:5