mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-23 09:02:41 +00:00
15 lines
471 B
PHP
15 lines
471 B
PHP
|
<?php
|
||
|
declare(strict_types=1);
|
||
|
namespace JKingWeb\NewsSync\Db;
|
||
|
|
||
|
interface Driver {
|
||
|
static function create(\JKingWeb\NewsSync\Conf $conf, bool $install = false): Driver;
|
||
|
static function driverName(): string;
|
||
|
function schemaVersion(): int;
|
||
|
function begin(): bool;
|
||
|
function commit(): bool;
|
||
|
function rollback(): bool;
|
||
|
function exec(string $query): bool;
|
||
|
function unsafeQuery(string $query): Result;
|
||
|
function prepare(string $query, string ...$paramType): Statement;
|
||
|
}
|