acquire_lock

Function acquire_lock 

Source
pub async fn acquire_lock(
    tr: &mut Transaction<'_, Postgres>,
    key: i64,
) -> Result<(), Error>
Expand description

Acquires a lock on the database to prevent concurrent migrations.