pub async fn lock_by_key<C: ConnectionTrait>(db: &C, key: &str) -> Result<()>
Locks one row by key where the database supports row locks.