1
0
mirror of https://github.com/danog/postgres.git synced 2024-12-15 10:57:22 +01:00
postgres/lib/Statement.php
2017-11-17 23:55:16 -06:00

20 lines
411 B
PHP

<?php
namespace Amp\Postgres;
use Amp\Promise;
interface Statement extends Operation {
/**
* @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;
}