Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Nov 19, 2023
1 parent 42f46bc commit 6686d5a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 20 deletions.
13 changes: 12 additions & 1 deletion src/PostgresLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,22 @@

namespace Amp\Postgres;

use Amp\Sql\ConnectionException;
use Amp\Sql\Link;
use Amp\Sql\QueryError;
use Amp\Sql\SqlException;

/**
* @extends Link<PostgresResult, PostgresStatement, PostgresTransaction>
*/
interface PostgresLink extends Link, PostgresReceiver
interface PostgresLink extends Link
{
/**
* @param non-empty-string $channel Channel name.
*
* @throws SqlException If the operation fails due to unexpected condition.
* @throws ConnectionException If the connection to the database is lost.
* @throws QueryError If the operation fails due to an error in the query (such as a syntax error).
*/
public function listen(string $channel): PostgresListener;
}
19 changes: 0 additions & 19 deletions src/PostgresReceiver.php

This file was deleted.

0 comments on commit 6686d5a

Please sign in to comment.