Skip to main content

no_mistakes_postgres_sql/statement_facts/
json_writes.rs

1use super::SqlWriteColumns;
2
3/// A literal top-level JSON object key assigned by an executed INSERT or UPDATE.
4/// Column ownership and same-row foreign keys are resolved from the prepared catalog.
5#[derive(Debug, Clone, PartialEq, Eq)]
6pub struct SqlJsonWriteFact {
7    pub table: String,
8    pub column: Option<String>,
9    /// Unknown after an unresolved wildcard in an INSERT SELECT projection.
10    pub column_index: Option<usize>,
11    pub written_columns: SqlWriteColumns,
12    pub key: String,
13    pub line: usize,
14    pub column_position: usize,
15}