Function dbExists

  • Checks if a specific database exists given its appID, type, and version. It uses the IndexedDB web API to search for the database.

    Parameters

    • cluster: string
    • appId: string

      A string representing the APP ID

    • dbType: DBType

      The Database type (either "Rule" o "Role")

    • version: number

      A number representing the Database version

    Returns Promise<boolean>

    A Promise resolving to a boolean indicating whether the database exists (true if it exists, false otherwise).

Generated using TypeDoc