# mainwp/6.2.2/modules/logs/classes/class-log-db-driver.php

MainWP Dashboard: Self-hosted WordPress Management for Agencies, version 6.2.2. 63 lines.

- Page: https://pluginprobe.com/plugins/mainwp/6.2.2/code/modules/logs/classes/class-log-db-driver.php
- Raw: https://pluginprobe.com/plugins/mainwp/6.2.2/raw/modules/logs/classes/class-log-db-driver.php
- Modified: 2026-02-24T16:08:26+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/mainwp/6.2.2/code/modules/logs/classes/class-log-db-driver.php#L10-L20`.

```php
<?php
/**
 * Interface for a Database Driver.
 *
 * @package MainWP/Dashboard
 */

namespace MainWP\Dashboard\Module\Log;

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

/**
 * Interface - Log_DB_Driver
 */
interface Log_DB_Driver {
    /**
     * Insert a record
     *
     * @param array $data Data to be insert into the database.
     *
     * @return int
     */
    public function insert_record( $data );

    /**
     * Retrieve records
     *
     * @param array $args Argument to filter the result by.
     *
     * @return array
     */
    public function get_records( $args );

    /**
     * Returns array of existing values for requested column.
     * Used to fill search filters with only used items, instead of all items.
     *
     * @param string $column Column to pull data from.
     *
     * @return array
     */
    public function get_column_values( $column );

    /**
     * Public getter to return the names of the tables this driver manages.
     *
     * @return array
     */
    public function get_table_names();



    /**
     * Purge storage.
     *
     * @param \MainWP\Dashboard\Module\Log\Log_Manager $manager Instance of the manager.
     */
    public function purge_storage( $manager );
}

```
