Austin Bonander
Austin Bonander
`FromRow` is going to be problematic because it's doing a hashmap lookup for every column of every row. I have some thoughts on how to improve that (doing the lookup...
By profiling https://github.com/diesel-rs/diesel/tree/master/diesel_bench I figured out that we're doing 100x the read calls that `tokio-postgres` does, due to the following routine being called from lots of different places with very...
My next project (hopefully) is to refactor the drivers so that the runtime and TLS features can be orthogonal, and part of that would include fixing this while improving cancellation-safety...
If you're using Postgres, you can use the `COPY` command with `.copy_out_raw()`: ```rust let mut stream: BoxStream = pg_pool.copy_out_raw( "COPY (SELECT * FROM my_table) TO STDOUT (FORMAT CSV)" ).await?; ```...
Heh, CockroachDB doesn't implement a lot of things.
It's a bit annoying but you can use overrides to force nullable/not nullable: https://docs.rs/sqlx/0.5.7/sqlx/macro.query.html#overrides-cheatsheet If you're always compiling in offline mode (with `SQLX_OFFLINE=1`) then the inferred nullability shouldn't change as...
The big issue with exposing an interface based on type OIDs is that they're not stable except for types that are in the default catalog. Otherwise, it's literally just an...
I think to the last point, we probably could add something to `Pool` that closes all connections older than the current timestamp when they're returned. That could help with a...
PRs are always welcome.
For one, it wouldn't be `FromRow` as we're talking about scalar values here, so it would be implementing `Type`, `Decode` and maybe `Encode`. Secondly, I don't think we would want...