The clean & modern RSS server that doesn't give you any crap.
https://thearsse.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
444 B
16 lines
444 B
<?php
|
|
declare(strict_types=1);
|
|
namespace JKingWeb\Arsse\Test\Database;
|
|
use JKingWeb\Arsse\Data;
|
|
use JKingWeb\Arsse\Db\SQLite3\Driver;
|
|
|
|
trait DriverSQLite3 {
|
|
function setUpDriver() {
|
|
Data::$conf->dbSQLite3File = ":memory:";
|
|
$this->drv = new Driver(true);
|
|
}
|
|
|
|
function nextID(string $table): int {
|
|
return $this->drv->query("SELECT (case when max(id) then max(id) else 0 end)+1 from $table")->getValue();
|
|
}
|
|
}
|