mirror of
https://github.com/danog/postgres.git
synced 2024-12-02 09:27:54 +01:00
33c056b635
Removed Operation from Statement.
25 lines
546 B
PHP
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;
|
|
}
|