1
0
mirror of https://github.com/danog/postgres.git synced 2024-12-13 18:07:31 +01:00
postgres/lib/Statement.php
2017-11-17 21:33:49 -06:00

20 lines
393 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 string The SQL string used to prepare the statement.
*/
public function getQuery(): string;
}