1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-23 05:34:55 +00:00
Arsse/vendor/JKingWeb/NewsSync/Db/Driver.php
J. King 6ffe942f99 SQLite3 database driver in working condition
PDO stub for now; other drivers to come
2016-10-05 22:08:43 -04:00

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