2016-10-06 02:08:43 +00:00
|
|
|
<?php
|
2017-11-17 01:23:18 +00:00
|
|
|
/** @license MIT
|
|
|
|
* Copyright 2017 J. King, Dustin Wilson et al.
|
|
|
|
* See LICENSE and AUTHORS files for details */
|
|
|
|
|
2016-10-06 02:08:43 +00:00
|
|
|
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 = [
|
|
|
|
"int" => "integer",
|
|
|
|
"integer" => "integer",
|
|
|
|
"float" => "float",
|
|
|
|
"double" => "float",
|
|
|
|
"real" => "float",
|
|
|
|
"numeric" => "float",
|
|
|
|
"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-08-29 14:50:31 +00:00
|
|
|
public function run(...$values): Result;
|
|
|
|
public function runArray(array $values = []): Result;
|
|
|
|
public function rebind(...$bindings): bool;
|
|
|
|
public function rebindArray(array $bindings): bool;
|
|
|
|
}
|