1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-23 09:02:41 +00:00
Arsse/vendor/JKingWeb/NewsSync/Db/Driver.php

15 lines
471 B
PHP
Raw Normal View History

<?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;
}