amphp / postgres

Async Postgres client for PHP based on Amp.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[v2.0.0-beta.5] Call to undefined method Amp\Postgres\Internal\PostgresPooledTransaction::createSavepoint()

PNixx opened this issue · comments

After update from v2.0.0-beta.4 method createSavepoint() not found:

$transaction = $connection->beginTransaction();
$transaction->createSavepoint($name); // <-- here

Transactions no longer implement methods for savepoints. Instead, you can start a nested transaction using PostgresTransaction::beginTransaction() and use the returned PostgresTransaction as a Link object to perform queries within a savepoint.