mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2025-01-09 01:12:41 +00:00
1529fc367a
Null and (>0) integer tested so far Many related changes to accomodate the necessary type juggling (required for databases other than SQLite).
35 lines
No EOL
842 B
PHP
35 lines
No EOL
842 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
namespace JKingWeb\NewsSync\Db;
|
|
|
|
interface Statement {
|
|
|
|
const TYPES = [
|
|
"null" => "null",
|
|
"nil" => "null",
|
|
"int" => "integer",
|
|
"integer" => "integer",
|
|
"float" => "float",
|
|
"double" => "float",
|
|
"real" => "float",
|
|
"numeric" => "float",
|
|
"date" => "date",
|
|
"time" => "time",
|
|
"datetime" => "datetime",
|
|
"timestamp" => "datetime",
|
|
"blob" => "binary",
|
|
"bin" => "binary",
|
|
"binary" => "binary",
|
|
"text" => "text",
|
|
"string" => "text",
|
|
"str" => "text",
|
|
"bool" => "boolean",
|
|
"boolean" => "boolean",
|
|
"bit" => "boolean",
|
|
];
|
|
|
|
function run(...$values): Result;
|
|
function runArray(array $values): Result;
|
|
function rebind(...$bindings): bool;
|
|
function rebindArray(array $bindings): bool;
|
|
} |