Skip to main content

SQLTableInfo

Trait SQLTableInfo 

Source
pub trait SQLTableInfo: Send + Sync {
    // Required method
    fn name(&self) -> &'static str;

    // Provided methods
    fn schema(&self) -> Option<&'static str> { ... }
    fn qualified_name(&self) -> Cow<'static, str> { ... }
}

Required Methods§

Source

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

Unqualified table name.

Provided Methods§

Source

fn schema(&self) -> Option<&'static str>

Schema namespace for this table, if any.

Source

fn qualified_name(&self) -> Cow<'static, str>

Fully-qualified table name.

Trait Implementations§

Source§

impl Debug for dyn SQLTableInfo

Source§

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

Formats the value using the given formatter. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: DrizzleTable> SQLTableInfo for T

Blanket: any DrizzleTable automatically satisfies SQLTableInfo.