athena_rs 3.26.3

Hyper performant polyglot Database driver
//! Column contract rows for schema catalog queries.
//!
//! This module owns column-row contract shape returned from
//! `information_schema.columns`.

use serde::{Deserialize, Serialize};

/// Column metadata read from `information_schema.columns`.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct SchemaColumnRecord {
    /// Schema that owns the table.
    pub table_schema: String,
    /// Table name.
    pub table_name: String,
    /// Column name.
    pub column_name: String,
    /// Postgres data type text.
    pub data_type: Option<String>,
    /// Default expression when present.
    pub column_default: Option<String>,
    /// `YES` / `NO` nullability marker from information schema.
    pub is_nullable: Option<String>,
}