Commit Graph

8 Commits

Author SHA1 Message Date
Matt Oliver
6fae6552ec Fix tests, replace match with matches! 2022-03-16 21:23:15 -05:00
Steven Fackler
24b01add82 Don't use a built container for test postgres 2021-10-28 19:08:38 -04:00
Steven Fackler
ed8fb9e8e7 Update docker image to Postgres 12.1 2019-12-04 16:51:55 -08:00
Steven Fackler
08b4020534 Overhaul connection APIs
* `Connection` is now parameterized over the stream type, which can be
    any `AsyncRead + AsyncWrite`.
* The `TlsMode` enum is now a trait, and `NoTls`, `PreferTls`, and
    `RequireTls` are types implementing that trait.
* The `TlsConnect` trait no longer involves trait objects, and returns
    channel binding info alongside the stream type rather than requiring
    the stream to implement an additional trait.
* The `connect` free function and `ConnectParams` type is gone in favor
    of a `Builder` type. It takes a pre-connected stream rather than
    automatically opening a TCP or Unix socket connection.

Notably, we no longer have any dependency on the Tokio runtime. We do
use the `tokio-codec` and `tokio-io` crates, but those don't actually
depend on mio/tokio-reactor/etc. This means we can work with other
futures-based networking stacks.

We will almost certainly add back a convenience API that offers
something akin to the old logic to open a TCP/Unix connection
automatically but that will be worked out in a follow up PR.
2018-11-28 19:20:40 -08:00
Steven Fackler
11ffcac087 Support SCRAM channel binding for Postgres 11 2018-06-01 23:07:33 -07:00
Steven Fackler
b7791509d0 Use Postgres 10 for CI 2017-10-05 14:20:26 -07:00
Steven Fackler
7069c57660 Upgrade to 10-beta2 2017-07-15 12:49:42 -07:00
Steven Fackler
47b0db257c Switch CI to CircleCI 2.0 2017-07-08 19:41:24 -07:00