pub type OwnedTableReference = TableReference<'static>;
Expand description

This is a TableReference that has ’static lifetime (aka it owns the underlying string)

To convert a TableReference to an OwnedTableReference, use

let table_reference = TableReference::from("mytable");
let owned_reference = table_reference.to_owned_reference();

Aliased Type§

enum OwnedTableReference {
    Bare {
        table: Cow<'static, str>,
    },
    Partial {
        schema: Cow<'static, str>,
        table: Cow<'static, str>,
    },
    Full {
        catalog: Cow<'static, str>,
        schema: Cow<'static, str>,
        table: Cow<'static, str>,
    },
}

Variants§

§

Bare

Fields

§table: Cow<'static, str>

The table name

An unqualified table reference, e.g. “table”

§

Partial

Fields

§schema: Cow<'static, str>

The schema containing the table

§table: Cow<'static, str>

The table name

A partially resolved table reference, e.g. “schema.table”

§

Full

Fields

§catalog: Cow<'static, str>

The catalog (aka database) containing the table

§schema: Cow<'static, str>

The schema containing the table

§table: Cow<'static, str>

The table name

A fully resolved table reference, e.g. “catalog.schema.table”

Trait Implementations§

source§

impl From<String> for OwnedTableReference

Parse a String into a OwnedTableReference as a multipart SQL identifier.

source§

fn from(s: String) -> Self

Converts to this type from the input type.