Austin Bonander

Results 748 comments of Austin Bonander

How would `PgConnection` differentiate? Maybe a query parameter? `?pgbouncer=1` or something.

We'd gladly accept a pull request that improves compatibility, but otherwise it's not currently a priority.

I don't really think that's something that SQLx should tackle. I think that could be built as a generic SQL interpolation library. If you have access to PgBouncer's config, it...

@uthng more discussion here: https://github.com/launchbadge/sqlx/pull/1740#issuecomment-1088045794

I like this idea. I think we could work it into the regular query path with `#[track_caller]` so it works even if you're not using the macros. It could be...

I'm wondering if we can roll this together with #1695 somehow in an ergonomic but maximally flexible way. I'm thinking a builder struct where you can set these options as...

Hmm, yeah I forgot that you actually want this to modify the query string that's sent to the server. In that case I agree, it doesn't make sense to try...

> what happens if I call: > > ```rust > builder.append().prepend().append() > ``` It would just be whatever the last one you called was. The reason I'm pushing for something...

Yeah technically you could have the same issue no matter the design: ```rust builder.should_prepend(true).should_prepend(false).should_prepend(true) builder.position(MarginaliaPosition::Prepend).position(MarginaliaPosition::Append).position(MarginaliaPosition::Prepend) ```

https://github.com/launchbadge/sqlx/runs/7438234746?check_suite_focus=true Just run `cargo fmt` and commit.