mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-23 05:34:55 +00:00
6ffe942f99
PDO stub for now; other drivers to come
15 lines
No EOL
471 B
PHP
15 lines
No EOL
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;
|
|
} |