2016-12-30 06:21:17 +01:00
|
|
|
<?php
|
2016-09-14 16:27:39 +02:00
|
|
|
|
|
|
|
namespace Amp\Postgres;
|
|
|
|
|
2017-03-17 16:17:24 +01:00
|
|
|
use Amp\Promise;
|
2016-09-14 16:27:39 +02:00
|
|
|
|
|
|
|
interface Statement {
|
|
|
|
/**
|
|
|
|
* @param mixed ...$params
|
|
|
|
*
|
2017-05-24 16:59:06 +02:00
|
|
|
* @return \Amp\Promise<\Amp\Postgres\CommandResult|\Amp\Postgres\TupleResult>
|
2016-09-14 16:27:39 +02:00
|
|
|
*/
|
2016-11-15 18:06:21 +01:00
|
|
|
public function execute(...$params): Promise;
|
2017-11-06 01:18:01 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string The SQL string used to prepare the statement.
|
|
|
|
*/
|
|
|
|
public function getQuery(): string;
|
2016-09-14 16:27:39 +02:00
|
|
|
}
|