pub enum Use {
Catalog(ObjectName),
Schema(ObjectName),
Database(ObjectName),
Warehouse(ObjectName),
Role(ObjectName),
SecondaryRoles(SecondaryRoles),
Object(ObjectName),
Default,
}Expand description
A USE (Statement::Use) operation
Variants§
Catalog(ObjectName)
Switch to the given catalog (e.g. USE CATALOG ...).
Schema(ObjectName)
Switch to the given schema (e.g. USE SCHEMA ...).
Database(ObjectName)
Switch to the given database (e.g. USE DATABASE ...).
Warehouse(ObjectName)
Switch to the given warehouse (e.g. USE WAREHOUSE ...).
Role(ObjectName)
Switch to the given role (e.g. USE ROLE ...).
SecondaryRoles(SecondaryRoles)
Use secondary roles specification (e.g. USE SECONDARY ROLES ...).
Object(ObjectName)
Use the specified object (e.g. USE foo.bar).
Default
Reset to default (e.g. USE DEFAULT).
Trait Implementations§
Source§impl Ord for Use
impl Ord for Use
Source§impl PartialOrd for Use
impl PartialOrd for Use
Source§impl VisitMut for Use
impl VisitMut for Use
Source§fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
Mutably visit this node with the provided
VisitorMut. Read moreimpl Eq for Use
impl StructuralPartialEq for Use
Auto Trait Implementations§
impl Freeze for Use
impl RefUnwindSafe for Use
impl Send for Use
impl Sync for Use
impl Unpin for Use
impl UnsafeUnpin for Use
impl UnwindSafe for Use
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