Enum sqlparser::ast::SchemaName
source · pub enum SchemaName {
Simple(ObjectName),
UnnamedAuthorization(Located<Ident>),
NamedAuthorization(ObjectName, Located<Ident>),
}
Expand description
Schema possible naming variants (1).
Variants§
Simple(ObjectName)
Only schema name specified: <schema name>
.
UnnamedAuthorization(Located<Ident>)
Only authorization identifier specified: AUTHORIZATION <schema authorization identifier>
.
NamedAuthorization(ObjectName, Located<Ident>)
Both schema name and authorization identifier specified: <schema name> AUTHORIZATION <schema authorization identifier>
.
Trait Implementations§
source§impl Clone for SchemaName
impl Clone for SchemaName
source§fn clone(&self) -> SchemaName
fn clone(&self) -> SchemaName
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SchemaName
impl Debug for SchemaName
source§impl<'de> Deserialize<'de> for SchemaName
impl<'de> Deserialize<'de> for SchemaName
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for SchemaName
impl Display for SchemaName
source§impl Hash for SchemaName
impl Hash for SchemaName
source§impl Ord for SchemaName
impl Ord for SchemaName
source§fn cmp(&self, other: &SchemaName) -> Ordering
fn cmp(&self, other: &SchemaName) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<SchemaName> for SchemaName
impl PartialEq<SchemaName> for SchemaName
source§fn eq(&self, other: &SchemaName) -> bool
fn eq(&self, other: &SchemaName) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SchemaName> for SchemaName
impl PartialOrd<SchemaName> for SchemaName
source§fn partial_cmp(&self, other: &SchemaName) -> Option<Ordering>
fn partial_cmp(&self, other: &SchemaName) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more