PluginProbe
Trinity Backup – Backup, Migrate, Restore, Clone & Schedule Backups / 2.0.5
Trinity Backup – Backup, Migrate, Restore, Clone & Schedule Backups v2.0.5
trunk 2.0.10 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9
trinity-backup / src / Database / DatabaseInterface.php

DatabaseInterface.php in Trinity Backup – Backup, Migrate, Restore, Clone & Schedule Backups 2.0.5, at src/Database/DatabaseInterface.php

27 lines 511 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 declare(strict_types=1);
4
5 namespace TrinityBackup\Database;
6
7 if (!\defined('ABSPATH')) {
8 exit;
9 }
10
11 interface DatabaseInterface
12 {
13 public function connect(): void;
14
15 /** @return string[] */
16 public function listTables(): array;
17
18 public function showCreateTable(string $table): string;
19
20 /** @return array<int, array<string, mixed>> */
21 public function select(string $sql): array;
22
23 public function execute(string $sql): void;
24
25 public function escape(string $value): string;
26 }
27