pub async fn force_release<C: AsMut<PgConnection>>(&self, mut conn: C) -> Result<(C, bool)> {
        let released: bool = match &self.key {
            PgAdvisoryLockKey::BigInt(key) => {
                crate::query_scalar::query_scalar("SELECT pg_advisory_unlock($1)")
                    .bind(key)
                    .fetch_one(conn.as_mut())
                    .await?
            }
            PgAdvisoryLockKey::IntPair(key1, key2) => {
                crate::query_scalar::query_scalar("SELECT pg_advisory_unlock($1, $2)")
                    .bind(key1)
                    .bind(key2)
                    .fetch_one(conn.as_mut())
                    .await?
            }
        };

        Ok((conn, released))
    }
/// Execute `pg_advisory_unlock()` for this lock's key on the given connection.
///
/// This is used by [`PgAdvisoryLockGuard::release_now()`] and is also provided for manually
/// releasing the lock from connections returned by [`PgAdvisoryLockGuard::leak()`].
///
/// An error should only be returned if there is something wrong with the connection,
/// in which case the lock will be automatically released by the connection closing anyway.
///
/// The `boolean` value is that returned by `pg_advisory_lock()`. If it is `false`, it
/// indicates that the lock was not actually held by the given connection and that a warning
/// has been logged by the Postgres server.
Execute `pg_advisory_unlock()` for this lock's key on the given connection.
This is used by [`PgAdvisoryLockGuard::release_now()`] and is also provided for manually
releasing the lock from connections returned by [`PgAdvisoryLockGuard::leak()`].

An error should only be returned if there is something wrong with the connection,
in which case the lock will be automatically released by the connection closing anyway.

The `boolean` value is that returned by `pg_advisory_lock()`. If it is `false`, it
indicates that the lock was not actually held by the given connection and that a warning
has been logged by the Postgres server.
Execute ` pg_advisory_unlock () ` for this lock ' s key on the given connection . This is used by [ ` PgAdvisoryLockGuard :: release_now () ` ] and is also provided for manually releasing the lock from connections returned by [ ` PgAdvisoryLockGuard :: leak () ` ] . An error should only be returned if there is something wrong with the connection in which case the lock will be automatically released by the connection closing anyway . The ` boolean ` value is that returned by ` pg_advisory_lock () ` . If it is ` false ` it indicates that the lock was not actually held by the given connection and that a warning has been logged by the Postgres server .
pub async fn force_release<C: AsMut<PgConnection>>(&self, mut conn: C) -> Result<(C, bool)> {
        let released: bool = match &self.key {
            PgAdvisoryLockKey::BigInt(key) => {
                crate::query_scalar::query_scalar("SELECT pg_advisory_unlock($1)")
                    .bind(key)
                    .fetch_one(conn.as_mut())
                    .await?
            }
            PgAdvisoryLockKey::IntPair(key1, key2) => {
                crate::query_scalar::query_scalar("SELECT pg_advisory_unlock($1, $2)")
                    .bind(key1)
                    .bind(key2)
                    .fetch_one(conn.as_mut())
                    .await?
            }
        };
        Ok((conn, released))
    }
pub async fn force_release < C : AsMut < PgConnection > > ( & self , mut conn : C ) -> Result < ( C , bool ) > { let released : bool = match & self . key { PgAdvisoryLockKey :: BigInt ( key ) => { crate :: query_scalar :: query_scalar ( " " ) . bind ( key ) . fetch_one ( conn . as_mut ( ) ) . await ? } PgAdvisoryLockKey :: IntPair ( key1 , key2 ) => { crate :: query_scalar :: query_scalar ( " " ) . bind ( key1 ) . bind ( key2 ) . fetch_one ( conn . as_mut ( ) ) . await ? } } ; Ok ( ( conn , released ) ) }
Execute `pg_advisory_unlock()` for this lock's key on the given connection.
Execute ` pg_advisory_unlock () ` for this lock ' s key on the given connection .
&self
conn
C