-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Postgres] Add support for LISTEN/NOTIFY #131
Commits on Mar 15, 2020
-
Configuration menu - View commit details
-
Copy full SHA for c7d416a - Browse repository at this point
Copy the full SHA c7d416aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a98253 - Browse repository at this point
Copy the full SHA 7a98253View commit details -
Configuration menu - View commit details
-
Copy full SHA for 27cd552 - Browse repository at this point
Copy the full SHA 27cd552View commit details -
Configuration menu - View commit details
-
Copy full SHA for cca0963 - Browse repository at this point
Copy the full SHA cca0963View commit details -
Configuration menu - View commit details
-
Copy full SHA for 553f03f - Browse repository at this point
Copy the full SHA 553f03fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d042e3 - Browse repository at this point
Copy the full SHA 5d042e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ab0701 - Browse repository at this point
Copy the full SHA 7ab0701View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a48cf3 - Browse repository at this point
Copy the full SHA 1a48cf3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0421c9f - Browse repository at this point
Copy the full SHA 0421c9fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 30897dd - Browse repository at this point
Copy the full SHA 30897ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 444ffff - Browse repository at this point
Copy the full SHA 444ffffView commit details -
Configuration menu - View commit details
-
Copy full SHA for 751efdf - Browse repository at this point
Copy the full SHA 751efdfView commit details -
Configuration menu - View commit details
-
Copy full SHA for a3799c3 - Browse repository at this point
Copy the full SHA a3799c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f27026 - Browse repository at this point
Copy the full SHA 5f27026View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0130fe1 - Browse repository at this point
Copy the full SHA 0130fe1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 63ef321 - Browse repository at this point
Copy the full SHA 63ef321View commit details -
sqlite: make the implementation far less naive
* WAL * sync = NORMAL, thought on this for awhile, all signs point to this being a very good default for WAL usage * separate worker thread per SQLite connection
Configuration menu - View commit details
-
Copy full SHA for 69ea41d - Browse repository at this point
Copy the full SHA 69ea41dView commit details -
Configuration menu - View commit details
-
Copy full SHA for c661fdd - Browse repository at this point
Copy the full SHA c661fddView commit details -
Configuration menu - View commit details
-
Copy full SHA for cddaf1b - Browse repository at this point
Copy the full SHA cddaf1bView commit details -
Configuration menu - View commit details
-
Copy full SHA for dd99fc3 - Browse repository at this point
Copy the full SHA dd99fc3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 68853ad - Browse repository at this point
Copy the full SHA 68853adView commit details -
Configuration menu - View commit details
-
Copy full SHA for 21097e1 - Browse repository at this point
Copy the full SHA 21097e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2abc451 - Browse repository at this point
Copy the full SHA 2abc451View commit details -
Configuration menu - View commit details
-
Copy full SHA for 97b50b9 - Browse repository at this point
Copy the full SHA 97b50b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 69b1d7f - Browse repository at this point
Copy the full SHA 69b1d7fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 426361f - Browse repository at this point
Copy the full SHA 426361fView commit details -
Configuration menu - View commit details
-
Copy full SHA for f667910 - Browse repository at this point
Copy the full SHA f667910View commit details -
sqlite: produce connection specific errors
postgres, mysql: use derive for Debug for error types
Configuration menu - View commit details
-
Copy full SHA for 68d4a0d - Browse repository at this point
Copy the full SHA 68d4a0dView commit details -
Configuration menu - View commit details
-
Copy full SHA for ab20db1 - Browse repository at this point
Copy the full SHA ab20db1View commit details -
Implement Postgres LISTEN interface.
This changeset introduces an interface for using PostgreSQL's LISTEN functionality from within sqlx. The listen interface is implemented over the PgConnection, PgPool & the PgPoolConnection types for ease of use. In the case of PgPool, a new connection is acquired, and is then used for LISTEN functionality. Closes #87
Configuration menu - View commit details
-
Copy full SHA for a52f364 - Browse repository at this point
Copy the full SHA a52f364View commit details -
Configuration menu - View commit details
-
Copy full SHA for cb186e6 - Browse repository at this point
Copy the full SHA cb186e6View commit details -
Impl a few features & refactor some code based on design discussion.
Extension traits are now being used for PgConnection, PgPoolConnection & PgPool for listen/notify functionality. Only two extension traits were introduced. Only a single trait method is present on the extension traits and it works for single or multi channel listening setups. Automatic reconnect behavior is implemented for PgPool based listeners. All logic has been cut over to the `recv` impls for the PgListener variants. Use async-stream for a nice Stream interface.
Configuration menu - View commit details
-
Copy full SHA for f831808 - Browse repository at this point
Copy the full SHA f831808View commit details -
Broke up PgListener into two types. PgListener for basic one-off connections, and PgPoolListener for the listener created from the PgPool. The API is a bit more clear now with this change in terms of reconnect behavior and the like. Update `fn stream` to be `fn into_stream`, as that nomenclature is a bit more normative in the Rust ecosystem.
Configuration menu - View commit details
-
Copy full SHA for a0da99e - Browse repository at this point
Copy the full SHA a0da99eView commit details -
Configuration menu - View commit details
-
Copy full SHA for ae7e15c - Browse repository at this point
Copy the full SHA ae7e15cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 75a7639 - Browse repository at this point
Copy the full SHA 75a7639View commit details -
Configuration menu - View commit details
-
Copy full SHA for 608556f - Browse repository at this point
Copy the full SHA 608556fView commit details -
The basic PgListener stream impl now yields `Result<PgNotification>` elements without an `Option` in the result. The option condition originally represented the closure of the underlying connection. Now such conditions will terminate the stream, as one would expect. The `PgListener.recv()` method signature has not been changed. PgPoolListener has also been updated. The interfaces on this struct will never yield an inner `Option` as it will instead acquire a new connection and continue its work. Both the stream impl & the `recv` method have received an update to their signatures.
Configuration menu - View commit details
-
Copy full SHA for 82923a1 - Browse repository at this point
Copy the full SHA 82923a1View commit details -
Remove the Drop impl for PgPoolListener.
This is being removed as it was causing undesired behavior under some contexts.
Configuration menu - View commit details
-
Copy full SHA for 3db54dd - Browse repository at this point
Copy the full SHA 3db54ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4419aea - Browse repository at this point
Copy the full SHA 4419aeaView commit details -
Inline MaybeOwned in ConnectionSource and add another variant to stor…
…e owned or ref connections
Configuration menu - View commit details
-
Copy full SHA for 12e250b - Browse repository at this point
Copy the full SHA 12e250bView commit details
Commits on Mar 17, 2020
-
Configuration menu - View commit details
-
Copy full SHA for dc8e36c - Browse repository at this point
Copy the full SHA dc8e36cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5cb0d9d - Browse repository at this point
Copy the full SHA 5cb0d9dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d0100b - Browse repository at this point
Copy the full SHA 1d0100bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ecacfa - Browse repository at this point
Copy the full SHA 0ecacfaView commit details -
Configuration menu - View commit details
-
Copy full SHA for b80080a - Browse repository at this point
Copy the full SHA b80080aView commit details -
Configuration menu - View commit details
-
Copy full SHA for f677748 - Browse repository at this point
Copy the full SHA f677748View commit details -
Configuration menu - View commit details
-
Copy full SHA for ed9d6c3 - Browse repository at this point
Copy the full SHA ed9d6c3View commit details -
listen: merge PgListener and PgPoolListener; allow PgListener to be u…
…sed as an Executor; allow channels to be adjusted at run-time
Configuration menu - View commit details
-
Copy full SHA for e99e80c - Browse repository at this point
Copy the full SHA e99e80cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 57d414f - Browse repository at this point
Copy the full SHA 57d414fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e3eb7c - Browse repository at this point
Copy the full SHA 0e3eb7cView commit details -
Configuration menu - View commit details
-
Copy full SHA for c44084d - Browse repository at this point
Copy the full SHA c44084dView commit details