use super::{SqlAssignmentFact, SqlOnConflictFact};
/// One executed `INSERT` recovered from PostgreSQL SQL.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct SqlInsertFact {
pub table: String,
/// Qualified identifier with PostgreSQL case and quoting preserved.
pub catalog_table: String,
pub line: usize,
pub column: usize,
pub executed: bool,
pub on_conflict: Option<SqlOnConflictFact>,
pub guarded_select: bool,
pub target_columns: Vec<String>,
/// Whole columns assigned from their same-named EXCLUDED values.
pub overwritten_columns: Vec<String>,
/// INSERT `SET` assignments, or column/value forms from `VALUES` / `SELECT`.
pub assignments: Vec<SqlAssignmentFact>,
}