pub struct RelationIdentity {
pub schema: String,
pub name: String,
}Expand description
Durable identity of a SQL relation.
The schema and local name are stored separately so foo and
public.foo can never become two physical catalog identities for the
same SQL object.
Fields§
§schema: String§name: StringImplementations§
Source§impl RelationIdentity
impl RelationIdentity
pub fn new(schema: impl Into<String>, name: impl Into<String>) -> Self
pub fn qualified_name(&self) -> String
Sourcepub fn from_legacy_name(value: &str) -> Result<Self, String>
pub fn from_legacy_name(value: &str) -> Result<Self, String>
Decode a SQL relation reference or a former flat catalog key.
Unqualified objects belong to public. Quoted components preserve
embedded dots and escaped quotes, so public.\"a.b\" is distinct from
\"public.a\".b all the way down to physical storage keys.
Trait Implementations§
Source§impl Clone for RelationIdentity
impl Clone for RelationIdentity
Source§fn clone(&self) -> RelationIdentity
fn clone(&self) -> RelationIdentity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RelationIdentity
impl Debug for RelationIdentity
Source§impl<'de> Deserialize<'de> for RelationIdentity
impl<'de> Deserialize<'de> for RelationIdentity
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
impl Eq for RelationIdentity
Source§impl Ord for RelationIdentity
impl Ord for RelationIdentity
Source§fn cmp(&self, other: &RelationIdentity) -> Ordering
fn cmp(&self, other: &RelationIdentity) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RelationIdentity
impl PartialEq for RelationIdentity
Source§impl PartialOrd for RelationIdentity
impl PartialOrd for RelationIdentity
Source§impl Serialize for RelationIdentity
impl Serialize for RelationIdentity
impl StructuralPartialEq for RelationIdentity
Auto Trait Implementations§
impl Freeze for RelationIdentity
impl RefUnwindSafe for RelationIdentity
impl Send for RelationIdentity
impl Sync for RelationIdentity
impl Unpin for RelationIdentity
impl UnsafeUnpin for RelationIdentity
impl UnwindSafe for RelationIdentity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more