mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-23 08:34:56 +00:00
11b2066922
Includes PHPDoc license tag in the file-level block with accompanying copyright notice. Also added an AUTHORS file on the off chance of outside contributions
38 lines
1.1 KiB
PHP
38 lines
1.1 KiB
PHP
<?php
|
|
/** @license MIT
|
|
* Copyright 2017 J. King, Dustin Wilson et al.
|
|
* See LICENSE and AUTHORS files for details */
|
|
|
|
declare(strict_types=1);
|
|
namespace JKingWeb\Arsse\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" => "string",
|
|
"string" => "string",
|
|
"str" => "string",
|
|
"bool" => "boolean",
|
|
"boolean" => "boolean",
|
|
"bit" => "boolean",
|
|
];
|
|
|
|
public function run(...$values): Result;
|
|
public function runArray(array $values = []): Result;
|
|
public function rebind(...$bindings): bool;
|
|
public function rebindArray(array $bindings): bool;
|
|
}
|