mirror of
https://github.com/danog/postgres.git
synced 2024-12-15 10:57:22 +01:00
20 lines
411 B
PHP
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;
|
|
}
|