no-mistakes-postgres-sql 0.109.131

PostgreSQL SQL parsing, statement facts, and identifier extraction for no-mistakes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// One syntactic INSERT, UPDATE, or MERGE write, independent of any catalog.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct SqlWriteFact {
    pub table: String,
    pub columns: SqlWriteColumns,
    pub line: usize,
    pub column: usize,
    pub column_keys: Option<Vec<String>>,
    #[doc(hidden)]
    pub self_assignment_only: bool,
}

#[derive(Debug, Clone, PartialEq, Eq)]
pub enum SqlWriteColumns {
    Named(Vec<String>),
    Positional(Option<usize>),
    All,
}