eaze / tide-sqlx

Tide middleware for SQLx pooled connections & transactions
https://crates.io/crates/tide-sqlx
Other
40 stars 9 forks source link

Support full PoolOptions & ConnectOptions configuration. #3

Closed Fishrock123 closed 3 years ago

Fishrock123 commented 3 years ago

It would be nice to support the full range of PoolOptions that SQLx exposes.

I think it would be unwieldy to duplicate all of these functions. I think a with_options(options: PoolOptions) or similar would be ideal.

However we probably do want to support connect_with(ConnectOptions) somehow, since some options, such as log filtering, are only available from ConnectOptions.

Fishrock123 commented 3 years ago

Done in https://github.com/eaze/tide-sqlx/pull/6