Class BracketsManager

A class to handle tournament management at those levels: stage, group, round, match and match_game.

Hierarchy

  • BracketsManager

Constructors

  • Creates an instance of BracketsManager, which will handle all the stuff from the library.

    Parameters

    • storageInterface: CrudInterface

      An implementation of CrudInterface.

    • Optional verbose: boolean

      Whether to log CRUD operations.

    Returns BracketsManager

Properties

delete: Delete
find: Find
get: Get
reset: Reset
storage: Storage
update: Update
verbose: boolean = false

Methods

  • Imports data in the database.

    Parameters

    • data: ValueToArray<DataTypes>

      Data to import.

    • normalizeIds: boolean = false

      Enable ID normalization: all IDs (and references to them) are remapped to consecutive IDs starting from 0.

    Returns Promise<void>

  • Add console.log() to storage methods in verbose mode.

    Returns void

Generated using TypeDoc