Expand description
A schema-qualified name with quotation marks still intact.
Fields
database: Option<String>
Database name
schema: Option<String>
Schema name
table: String
Table name
Implementations
sourceimpl QName
impl QName
sourcepub fn qualified_name(&self) -> String
pub fn qualified_name(&self) -> String
Obtains the qualified name connected with dots ("db"."schema"."table"
)
sourcepub fn unique_name(&self) -> String
pub fn unique_name(&self) -> String
Obtains the unique name.
This name is transformed from the qualified name with these changes:
- Unquoted names are all converted to lower case in the default
collation (
XyzÄbc
→xyzäbc
). If the lowercasing results in multiple characters (e.g.İ
→i̇
), only the first (i
) will be included. - Quotation marks are removed (
"Hello ""world"""
→Hello "world"
) - Special characters including
.
,-
and/
are percent-encoded, so the resulting string can be safely used as a filename.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for QName
impl Send for QName
impl Sync for QName
impl Unpin for QName
impl UnwindSafe for QName
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more