sql = $sql; $this->execute = $execute; } /** * @return string */ public function getQuery(): string { return $this->sql; } /** * @param mixed ...$params * * @return \Amp\Promise<\Amp\Postgres\Result> * * @throws \Amp\Postgres\FailureException If executing the statement fails. */ public function execute(...$params): Promise { return ($this->execute)(sha1($this->sql), $params); } }