public function statementExecute(string $name, array $params): Promise
    {
        \assert(isset($this->statements[$name]), "Named statement not found when executing");

        $storage = $this->statements[$name];

        \assert($storage->statement instanceof pq\Statement, "Statement storage in invalid state");

        return new Coroutine($this->send([$storage->statement, "execAsync"], $params));
    }
public function statementExecute(string $name, array $params): Promise
    {
        \assert(isset($this->statements[$name]), "Named statement not found when executing");

        $storage = $this->statements[$name];

        \assert($storage->statement instanceof pq\Statement, "Statement storage in invalid state");

        return new Coroutine($this->send([$storage->statement, "execAsync"], $params));
    }
public function statementExecute ( string $ name , array $ params ) : Promise { \ assert ( isset ( $ this -> statements [ $ name ] ) , "Named statement not found when executing" ) ; $ storage = $ this -> statements [ $ name ] ; \ assert ( $ storage -> statement instanceof pq \ Statement , "Statement storage in invalid state" ) ; return new Coroutine ( $ this -> send ( [ $ storage -> statement , "execAsync" ] , $ params ) ) ; }
Executes the named statement using the given parameters.

@param string $name
@param array $params

@return Promise
@throws FailureException
Executes the named statement using the given parameters .