# trinity-backup/2.0.5/src/Database/DatabaseInterface.php

Trinity Backup – Backup, Migrate, Restore, Clone &amp; Schedule Backups, version 2.0.5. 27 lines.

- Page: https://pluginprobe.com/plugins/trinity-backup/2.0.5/code/src/Database/DatabaseInterface.php
- Raw: https://pluginprobe.com/plugins/trinity-backup/2.0.5/raw/src/Database/DatabaseInterface.php
- Modified: 2026-01-29T16:15:16+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/trinity-backup/2.0.5/code/src/Database/DatabaseInterface.php#L10-L20`.

```php
<?php

declare(strict_types=1);

namespace TrinityBackup\Database;

if (!\defined('ABSPATH')) {
    exit;
}

interface DatabaseInterface
{
    public function connect(): void;

    /** @return string[] */
    public function listTables(): array;

    public function showCreateTable(string $table): string;

    /** @return array<int, array<string, mixed>> */
    public function select(string $sql): array;

    public function execute(string $sql): void;

    public function escape(string $value): string;
}

```
