PostgresColumnInfo

Trait PostgresColumnInfo 

Source
pub trait PostgresColumnInfo: SQLColumnInfo + Any {
    // Required methods
    fn table(&self) -> &dyn PostgresTableInfo;
    fn is_serial(&self) -> bool;
    fn is_bigserial(&self) -> bool;
    fn is_generated_identity(&self) -> bool;
    fn postgres_type(&self) -> &'static str;

    // Provided method
    fn foreign_key(&self) -> Option<&'static dyn PostgresColumnInfo> { ... }
}

Required Methods§

Source

fn table(&self) -> &dyn PostgresTableInfo

Source

fn is_serial(&self) -> bool

Source

fn is_bigserial(&self) -> bool

Source

fn is_generated_identity(&self) -> bool

Source

fn postgres_type(&self) -> &'static str

Provided Methods§

Source

fn foreign_key(&self) -> Option<&'static dyn PostgresColumnInfo>

Returns the foreign key reference if this column has one

Trait Implementations§

Source§

impl Debug for dyn PostgresColumnInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§