21 Commits

Author SHA1 Message Date
joeydewaal
68da5aefea
Box Pgconnection fields (#3529)
* Update PgConnection code

* rustfmt
2024-10-02 11:42:54 -07:00
Austin Bonander
9e3ece49d7 fix(postgres): use checked decrement on pending_ready_for_query_count 2024-08-23 23:39:32 -07:00
Austin Bonander
53766e4659 refactor(postgres): make better use of traits to improve protocol handling 2024-08-23 23:39:32 -07:00
Austin Bonander
16e3f1025a fix(postgres): add missing type resolution for arrays by name 2024-07-08 00:14:19 -07:00
Andrew Lilley Brinker
1bdbedabdc
Impl AsMut for advisory lock types (#2520) (#2554)
The documentation for `PgAdvisoryLockGuard` lists a set of types
that should be able to be passed to it, but when actually trying
to do so, compilation would fail due to missing `AsMut` trait
implementations for those types. This commit adds the missing
`AsMut` impls so that `Transaction` and `PgConnection` can be used
as type parameters to `PgAdvisoryLockGuard`, as expected.

For reference: https://github.com/launchbadge/sqlx/issues/2520
2023-06-30 16:53:14 -07:00
Austin Bonander
c4b835c23a feat: add Connection::shrink_buffers, PoolConnection::close
closes #2372
2023-03-03 16:50:27 -08:00
Marco Cameriero
ab2ae26189 Postgres OID resolution query does not take into account current search_path (#2133)
* Fix oid resolution query

* Address review comments
2023-02-21 13:25:25 -08:00
Austin Bonander
b5312c3b6f Break drivers out into separate crates, clean up some technical debt (#2039)
* WIP rt refactors

* refactor: break drivers out into separate crates

also cleans up significant technical debt
2023-02-21 13:25:25 -08:00
Ryan Leckey
04f56570a4 Collapse into 1 crate 2019-07-25 23:41:50 -07:00
Ryan Leckey
0703a1b91a Clean up connection methods a bit 2019-07-25 23:34:39 -07:00
Ryan Leckey
3599d50811 Use advance instead of set in read loop 2019-07-17 23:01:26 -07:00
Ryan Leckey
8589f0b907 Move to explicit prepare vs. implicit in execute builder 2019-07-17 12:43:46 -07:00
Ryan Leckey
c040c97cb3 Initial experiment with the low-level API and PREPARE + EXECUTE queries 2019-07-16 01:15:12 -07:00
Ryan Leckey
e8ecbeda36 WIP Query 2019-06-29 21:57:04 -07:00
Ryan Leckey
c895ef52fe Decorate send/receive with trace logs for development 2019-06-29 21:40:33 -07:00
Ryan Leckey
4c90e026f7 Improve performance and minor tweaks 2019-06-29 21:32:39 -07:00
Ryan Leckey
aa0b27af35 Minor clean up 2019-06-28 21:36:46 -07:00
Ryan Leckey
c59e65d65b Add some additional decode benchmarks 2019-06-28 00:30:43 -07:00
Ryan Leckey
5c73e220b6 Set up a connection benchmark using a mocked pg server 2019-06-26 12:49:08 -07:00
Ryan Leckey
8a4c5ea2fe Integrate new protocol crate to connection 2019-06-22 21:44:13 -07:00
Ryan Leckey
22f71df7c7 mason -> sqlx 2019-06-22 20:54:43 -07:00