We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Postgres offers a pub / sub listen and notify, it would be amazing if Vapor 3 could implement this. Perfect for realtime updates.
The text was updated successfully, but these errors were encountered:
I can dig in on this. assuming just like redis then we should be able to mimick command names in appliance
Info (https://www.postgresql.org/docs/10/static/sql-listen.html)
conn.listen(_ channel: String, @escaping (PostgreSQLData) -> Void) -> Futue<Conn>
Info (https://www.postgresql.org/docs/10/static/sql-notify.html)
conn.notify(_ channel: String, payload: PostgrSQLData) -> Futue<Void>
Sorry, something went wrong.
In Progress no one complained so I am implementing
publicize listen/notify methods, fixes #40
0fdca43
Publicized in #72:
let conn = try PostgreSQLConnection.makeTest(transport: .cleartext) let done = conn.listen("foo") { message in XCTAssertEqual(message, "hi") return true } do { let conn = try PostgreSQLConnection.makeTest(transport: .cleartext) _ = try conn.notify("foo", message: "hi").wait() } try done.wait()
tanner0101
pedantix
No branches or pull requests
Postgres offers a pub / sub listen and notify, it would be amazing if Vapor 3 could implement this. Perfect for realtime updates.
The text was updated successfully, but these errors were encountered: