Class Database

Constructor for the Database class.

Constructors

Properties

config: WPMMconfig

The configuration object.

Methods

  • Generates a unique filename for the database dump.

    Returns string

    The generated filename.

  • Asynchronously dumps the database to the specified output file.

    Parameters

    • basePath: string

      The base path of the WordPress installation.

    Returns Promise<void | Error>

    A promise that resolves if the database is dumped successfully, or rejects with an error message if an error occurs.

    Async

  • Uploads a database by executing SQL queries from a specified file.

    Parameters

    • sqlFilePath: string

      The path to the SQL file.

    Returns Promise<void | Error>

    A Promise that resolves to a MySQL Connection object or throws an Error.

    Async

Generated using TypeDoc