safe-migrate 0.4.1

Lint PostgreSQL migrations against live database statistics to prevent blocking locks
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// FILE: ./src/model/sequence.rs

use crate::ast::identifiers::ObjectId;

#[derive(Debug, Clone, PartialEq)]
pub struct SequenceState {
    pub id: ObjectId,
    pub generation: u64,
}

#[derive(Debug, Clone, PartialEq)]
pub enum SequenceOverlay {
    Present(SequenceState),
    Dropped,
}