Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transactions #29

Merged
merged 11 commits into from
Mar 9, 2023
9 changes: 9 additions & 0 deletions src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,4 +260,13 @@ public function dropTable(string $name): PromiseInterface;
* @throws TableNotFoundException
*/
public function truncateTable(string $name): PromiseInterface;

/**
* @return \React\Promise\PromiseInterface<\Drift\DBAL\SingleConnection>
*/
public function startTransaction(): PromiseInterface;

public function commitTransaction(SingleConnection $connection): PromiseInterface;

public function rollbackTransaction(SingleConnection $connection): PromiseInterface;
}
Loading