Abstract class outlining Database API operations supported by the SDK.

Hierarchy

Constructors

Methods

  • Creates a database with the given name, engine, and parameters.

    Returns

    • Newly created database.

    Throws

    • Something went wrong creating the database.

    Parameters

    • name: string

      Name of the database to be created.

    • Optional engine: string

      Optional name of the database engine.

    • Optional params: Record<string, JsonValue>

      Optional parameters used to connect to the database (e.g. user, password).

    Returns Promise<default>

  • Deletes a database by name.

    Throws

    • Something went wrong deleting the database.

    Parameters

    • name: string

      Name of the database to be deleted.

    Returns Promise<void>

  • Gets a database by name for the authenticated user.

    Returns

    • Matching database, or undefined if it doesn't exist.

    Parameters

    • name: string

      Name of the database.

    Returns Promise<undefined | default>

Generated using TypeDoc