pub struct SqlQualifiedName { /* private fields */ }Expand description
A dot-qualified SQL name.
Implementations§
Source§impl SqlQualifiedName
impl SqlQualifiedName
Sourcepub fn new(parts: Vec<SqlIdentifier>) -> Result<Self, SqlIdentifierError>
pub fn new(parts: Vec<SqlIdentifier>) -> Result<Self, SqlIdentifierError>
Creates a qualified name from one or more identifier parts.
§Errors
Returns SqlIdentifierError::EmptyQualifiedName when parts is empty.
Sourcepub fn parse(input: &str) -> Result<Self, SqlIdentifierError>
pub fn parse(input: &str) -> Result<Self, SqlIdentifierError>
Parses a dot-qualified name using conservative dot splitting.
§Errors
Returns SqlIdentifierError when any segment is invalid.
Sourcepub fn parts(&self) -> &[SqlIdentifier]
pub fn parts(&self) -> &[SqlIdentifier]
Returns the identifier parts.
Trait Implementations§
Source§impl Clone for SqlQualifiedName
impl Clone for SqlQualifiedName
Source§fn clone(&self) -> SqlQualifiedName
fn clone(&self) -> SqlQualifiedName
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 SqlQualifiedName
impl Debug for SqlQualifiedName
Source§impl Display for SqlQualifiedName
impl Display for SqlQualifiedName
Source§impl FromStr for SqlQualifiedName
impl FromStr for SqlQualifiedName
Source§impl Hash for SqlQualifiedName
impl Hash for SqlQualifiedName
Source§impl Ord for SqlQualifiedName
impl Ord for SqlQualifiedName
Source§fn cmp(&self, other: &SqlQualifiedName) -> Ordering
fn cmp(&self, other: &SqlQualifiedName) -> 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
Source§impl PartialEq for SqlQualifiedName
impl PartialEq for SqlQualifiedName
Source§fn eq(&self, other: &SqlQualifiedName) -> bool
fn eq(&self, other: &SqlQualifiedName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SqlQualifiedName
impl PartialOrd for SqlQualifiedName
Source§impl TryFrom<&str> for SqlQualifiedName
impl TryFrom<&str> for SqlQualifiedName
impl Eq for SqlQualifiedName
impl StructuralPartialEq for SqlQualifiedName
Auto Trait Implementations§
impl Freeze for SqlQualifiedName
impl RefUnwindSafe for SqlQualifiedName
impl Send for SqlQualifiedName
impl Sync for SqlQualifiedName
impl Unpin for SqlQualifiedName
impl UnsafeUnpin for SqlQualifiedName
impl UnwindSafe for SqlQualifiedName
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