1
0
mirror of https://github.com/danog/postgres.git synced 2024-12-02 09:27:54 +01:00
postgres/lib/Statement.php
Aaron Piotrowski 33c056b635
Add PooledStatement
Removed Operation from Statement.
2018-01-25 21:49:24 -06:00

25 lines
546 B
PHP

<?php
namespace Amp\Postgres;
use Amp\Promise;
interface Statement {
/**
* @param mixed[] $params
*
* @return \Amp\Promise<\Amp\Postgres\CommandResult|\Amp\Postgres\TupleResult>
*/
public function execute(array $params = []): Promise;
/**
* @return bool True if the statement can still be executed, false if the connection has died.
*/
public function isAlive(): bool;
/**
* @return string The SQL string used to prepare the statement.
*/
public function getQuery(): string;
}