sqlx/sqlx-postgres
Duncan 01d5443f15
feat(postgres): remove lifetime from PgAdvisoryLockGuard (#3495)
Unlike with CPU synchronization primitives, there is no semantic requirement
that the guard borrows the lock object.

We preserve the optimization of memoizing the release query by wrapping it in
an Arc. This way all instances of `PgAdvisoryLockGuard` that originate from the
same lock will share a single instance of the release query.

Co-authored-by: Austin Bonander <austin.bonander@gmail.com>
2025-07-17 02:32:05 -07:00
..
2025-06-30 17:23:12 -07:00
2024-06-20 10:56:08 -07:00
2024-06-20 10:56:08 -07:00