pglockanalyze 0.0.4

See what PostgreSQL locks your migrations acquired
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use postgres::types::Oid;
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub struct Database {
    /// [pg_locks.database] OID of the database in which the lock target exists,
    /// or zero if the target is a shared object, or null if the target is a
    /// transaction ID
    #[serde(skip)]
    pub oid: Oid,

    pub name: String,
}