Fake Mirrors
    Preparing search index...

    Interface DatabaseManager

    Defines the public contract for a database manager.

    The manager is responsible for administrative database operations such as loading custom functions and performing cleanup tasks.

    interface DatabaseManager {
        cleanup(): Promise<void>;
        getInfo(): Promise<string[]>;
        loadFunctions(): Promise<void>;
    }

    Implemented by

    • Cleans up the entire database.

      This method removes all data and should be used with caution.

      Returns Promise<void>

      DatabaseError If the cleanup operation fails.

    • Retrieves the database information.

      Returns Promise<string[]>

      DatabaseError If the operation fails.

    • Loads all custom functions into the database.

      Returns Promise<void>

      DatabaseError If the operation fails.