Class Group

Hierarchy (View Summary)

Properties

address: Muid
behavior: Behavior
database: Database
DELETION: Deletion = ...
globalPropertyMuid: { medallion: number; offset: Behavior; timestamp: number } = ...
INCLUSION: Inclusion = ...

Accessors

Methods

  • Function to iterate over the containers in the group.

    Parameters

    • OptionalasOf: AsOf

      optional timestamp to look back to

    Returns AsyncGenerator<Container, void>

    an async iterator across all containers in the group

  • Dumps the contents of this group to a javascript array.Only includes explicitly included members. useful for debugging and could also be used to export data by walking the tree

    Parameters

    • OptionalasOf: AsOf

      effective time to get the dump for: leave undefined to get data as of the present

    Returns Promise<Container[]>

    an array containing Values (e.g. numbers, strings) and Containers (e.g. other Lists, Boxes, Directories)

  • Whether or not the given key is explicitly included in the group.

    Parameters

    • key: Muid | Container

      either a Muid or container to check if it is included

    • OptionalasOf: AsOf

      optional timestamp to look back to

    Returns Promise<boolean>

    a promise that resolves to a boolean stating whether the key is explicitly included

  • Reset this Container to a previous time. If no time is specified, the container will be cleared.

    Parameters

    • OptionaltoTime: AsOf
    • Optionalrecurse: any
    • Optionalmeta: Meta

    Returns Promise<void>

    toTime Optional time to reset to. If absent, the container will be cleared.

    recurse Recursively reset all child containers held by this container at reset time?

    meta Metadata to be used in the reset.

  • Reset the properties associated with this container to a previous time.

    Parameters

    • OptionaltoTime: AsOf

      optional timestamp to reset to. If not provided, the properties will be deleted.

    • Optionalmeta: Meta

    Returns Promise<void>

  • This returns the number of inclusions only, NOT exclusions.

    Returns Promise<number>

    how many containers are included in the group

  • Generates a JSON representation of the data in the group. Mostly intended for demo/debug purposes.

    Parameters

    • indent: number | boolean = false

      true to pretty print (not yet implemented)

    • OptionalasOf: AsOf

      optional timestamp to look back to

    • Optionalseen: Set<string>

      (internal use only! This prevents cycles from breaking things)

    Returns Promise<string>

    a JSON string