Kyle Huey

Results 284 comments of Kyle Huey

The X11 protocol also has byte order that is selectable at runtime.

Can you get yourself a dedicated connection (via `Pool::dedicated_connection`) and use that? I'm not entirely sure how Redis's pub-sub stuff works but I added that for doing LISTENs on postgres.

I wonder if this is really a bug with `tokio-postgres`. If it had an `impl MakeTlsConnect for Box`, then you could just box whatever you have into a trait object...

Ugh, that's kind of nasty. Maybe we should add a method onto `PostgresConnectionManager` and give you a way to get that from the `Pool`.

It appears you have to drive the connection yourself if you want to get `LISTEN` notifications. Ideally tokio-postgres would split those off into a separate `Stream` for you ...

I haven't actually run this against a real database but I think it should work: https://github.com/khuey/bb8/commit/36c52b6ba5622edb398d9b66b155fd4f6ee76a07#diff-fe61805d997a94ac99aa2ae71f7750d7R30 The tokio-postgres transaction API is not usable from bb8 at the moment, unfortunately, so...

Guide you through the implementation of what, exactly?

So tokio-postgres's transaction API is available[0], it just doesn't work. The `TransactionBuilder` object that tokio-postgres gives you takes a `Future`, and we need to move the connection object[1] into the...

Something like this works. ```diff diff --git a/postgres/src/lib.rs b/postgres/src/lib.rs index 87c38ce..47bd6a7 100644 --- a/postgres/src/lib.rs +++ b/postgres/src/lib.rs @@ -90,16 +90,20 @@ where } /// Run asynchronous into a Transaction -pub fn...

Woops, meant to post that in the PR.