iniquity

A re-imagining of the iconic BBS software.

View on GitHub

Class: JSONGroupDatabase

group.JSONGroupDatabase

JSON file-based group database

Implements

Table of contents

Constructors

Methods

Constructors

constructor

new JSONGroupDatabase(dataPath?)

Parameters

Name Type Default value
dataPath string "./data/groups"

Defined in

core/src/group.ts:212

Methods

create

create(groupData): null | IGroupData

Parameters

Name Type
groupData Partial<IGroupData>

Returns

null | IGroupData

Implementation of

IGroupDatabase.create

Defined in

core/src/group.ts:286


delete

delete(name): boolean

Parameters

Name Type
name string

Returns

boolean

Implementation of

IGroupDatabase.delete

Defined in

core/src/group.ts:315


exists

exists(name): boolean

Parameters

Name Type
name string

Returns

boolean

Implementation of

IGroupDatabase.exists

Defined in

core/src/group.ts:328


getNextId

getNextId(): number

Returns

number

Implementation of

IGroupDatabase.getNextId

Defined in

core/src/group.ts:336


list

list(): IGroupData[]

Returns

IGroupData[]

Implementation of

IGroupDatabase.list

Defined in

core/src/group.ts:332


load

load(name): null | IGroupData

Parameters

Name Type
name string

Returns

null | IGroupData

Implementation of

IGroupDatabase.load

Defined in

core/src/group.ts:269


save

save(group): boolean

Parameters

Name Type
group IGroupData

Returns

boolean

Implementation of

IGroupDatabase.save

Defined in

core/src/group.ts:273