2016-10-05 22:08:43 -04:00
|
|
|
<?php
|
2017-11-16 20:23:18 -05:00
|
|
|
/** @license MIT
|
|
|
|
* Copyright 2017 J. King, Dustin Wilson et al.
|
|
|
|
* See LICENSE and AUTHORS files for details */
|
|
|
|
|
2016-10-05 22:08:43 -04:00
|
|
|
declare(strict_types=1);
|
2017-03-28 00:12:12 -04:00
|
|
|
namespace JKingWeb\Arsse\Db;
|
2016-10-05 22:08:43 -04:00
|
|
|
|
|
|
|
interface Statement {
|
2017-04-06 21:41:21 -04: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 14:19:16 -05:00
|
|
|
|
2017-08-29 10:50:31 -04:00
|
|
|
public function run(...$values): Result;
|
|
|
|
public function runArray(array $values = []): Result;
|
2017-12-30 17:04:21 -05:00
|
|
|
public function retype(...$bindings): bool;
|
|
|
|
public function retypeArray(array $bindings): bool;
|
2017-08-29 10:50:31 -04:00
|
|
|
}
|