Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    Class DatabaseBackendAbstract

    An abstract base class extended on both the client and server which defines how Documents are retrieved, created, updated, and deleted.

    Hierarchy (View Summary)

    Index

    Methods

    • Describe the scopes which are suitable as the namespace for a flag key

      Returns string[]

    • Describe the scopes which are suitable as the namespace for a flag key

      Returns string[]

    • Protected

      Log a database operations message.

      Parameters

      • level: string

        The logging level

      • message: string

        The message

      Returns void

    • Protected

      Log a database operation for an embedded document, capturing the action taken and relevant IDs

      Parameters

      • action: string

        The action performed

      • type: string

        The document type

      • documents: Document[]

        The documents modified

      • Optionalcontext: {
            dryRun?: boolean;
            level?: string;
            pack?: string;
            parent?: Document<object, DocumentConstructionContext>;
        } = {}

        The context of the log request

        • OptionaldryRun?: boolean

          Whether this operation is part of a dry run: abort true and level isn't "debug"

        • Optionallevel?: string

          The logging level

        • Optionalpack?: string

          A compendium pack within which the operation occurred

        • Optionalparent?: Document<object, DocumentConstructionContext>

          A parent document

      Returns void