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