2016-10-06 02:08:43 +00:00
|
|
|
<?php
|
|
|
|
declare(strict_types=1);
|
2017-03-28 04:12:12 +00:00
|
|
|
namespace JKingWeb\Arsse\Db;
|
2016-10-06 02:08:43 +00:00
|
|
|
|
|
|
|
interface Statement {
|
2017-04-07 01:41:21 +00:00
|
|
|
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" => "string",
|
|
|
|
"string" => "string",
|
|
|
|
"str" => "string",
|
|
|
|
"bool" => "boolean",
|
|
|
|
"boolean" => "boolean",
|
|
|
|
"bit" => "boolean",
|
|
|
|
];
|
2017-03-02 19:19:16 +00:00
|
|
|
|
2017-03-02 04:12:42 +00:00
|
|
|
function run(...$values): Result;
|
2017-06-04 22:00:18 +00:00
|
|
|
function runArray(array $values = []): Result;
|
2017-03-02 04:12:42 +00:00
|
|
|
function rebind(...$bindings): bool;
|
|
|
|
function rebindArray(array $bindings): bool;
|
2016-10-06 02:08:43 +00:00
|
|
|
}
|