1
0
mirror of https://github.com/danog/postgres.git synced 2024-12-15 19:07:26 +01:00
postgres/lib/Statement.php
2017-11-05 18:18:01 -06:00

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